1. 04 9月, 2019 2 次提交
  2. 04 7月, 2019 2 次提交
  3. 21 5月, 2019 1 次提交
  4. 16 4月, 2019 2 次提交
  5. 19 3月, 2019 1 次提交
  6. 30 1月, 2019 1 次提交
  7. 08 1月, 2019 4 次提交
  8. 17 12月, 2018 3 次提交
  9. 10 11月, 2018 1 次提交
  10. 09 11月, 2018 1 次提交
  11. 15 10月, 2018 2 次提交
  12. 03 10月, 2018 2 次提交
  13. 18 9月, 2018 3 次提交
  14. 02 8月, 2018 3 次提交
  15. 21 7月, 2018 2 次提交
  16. 16 7月, 2018 1 次提交
  17. 06 7月, 2018 4 次提交
  18. 05 6月, 2018 1 次提交
    • G
      serial: sh-sci: Stop using printk format %pCr · d63c16f8
      Geert Uytterhoeven 提交于
      Printk format "%pCr" will be removed soon, as clk_get_rate() must not be
      called in atomic context.
      
      Replace it by open-coding the operation.  This is safe here, as the code
      runs in task context.
      
      Link: http://lkml.kernel.org/r/1527845302-12159-4-git-send-email-geert+renesas@glider.be
      To: Jia-Ju Bai <baijiaju1990@gmail.com>
      To: Jonathan Corbet <corbet@lwn.net>
      To: Michael Turquette <mturquette@baylibre.com>
      To: Stephen Boyd <sboyd@kernel.org>
      To: Zhang Rui <rui.zhang@intel.com>
      To: Eduardo Valentin <edubezval@gmail.com>
      To: Eric Anholt <eric@anholt.net>
      To: Stefan Wahren <stefan.wahren@i2se.com>
      To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
      Cc: Petr Mladek <pmladek@suse.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: linux-doc@vger.kernel.org
      Cc: linux-clk@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Cc: linux-serial@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: stable@vger.kernel.org # 4.5+
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NPetr Mladek <pmladek@suse.com>
      d63c16f8
  19. 14 5月, 2018 1 次提交
    • D
      serial: sh-sci: Use spin_{try}lock_irqsave instead of open coding version · 8afb1d2c
      Daniel Wagner 提交于
      Commit 40f70c03 ("serial: sh-sci: add locking to console write
      function to avoid SMP lockup") copied the strategy to avoid locking
      problems in conjuncture with the console from the UART8250
      driver. Instead using directly spin_{try}lock_irqsave(),
      local_irq_save() followed by spin_{try}lock() was used. While this is
      correct on mainline, for -rt it is a problem. spin_{try}lock() will
      check if it is running in a valid context. Since the local_irq_save()
      has already been executed, the context has changed and
      spin_{try}lock() will complain. The reason why spin_{try}lock()
      complains is that on -rt the spin locks are turned into mutexes and
      therefore can sleep. Sleeping with interrupts disabled is not valid.
      
      BUG: sleeping function called from invalid context at /home/wagi/work/rt/v4.4-cip-rt/kernel/locking/rtmutex.c:995
      in_atomic(): 0, irqs_disabled(): 128, pid: 778, name: irq/76-eth0
      CPU: 0 PID: 778 Comm: irq/76-eth0 Not tainted 4.4.126-test-cip22-rt14-00403-gcd03665c8318 #12
      Hardware name: Generic RZ/G1 (Flattened Device Tree)
      Backtrace:
      [<c00140a0>] (dump_backtrace) from [<c001424c>] (show_stack+0x18/0x1c)
       r7:c06b01f0 r6:60010193 r5:00000000 r4:c06b01f0
      [<c0014234>] (show_stack) from [<c01d3c94>] (dump_stack+0x78/0x94)
      [<c01d3c1c>] (dump_stack) from [<c004c134>] (___might_sleep+0x134/0x194)
       r7:60010113 r6:c06d3559 r5:00000000 r4:ffffe000
      [<c004c000>] (___might_sleep) from [<c04ded60>] (rt_spin_lock+0x20/0x74)
       r5:c06f4d60 r4:c06f4d60
      [<c04ded40>] (rt_spin_lock) from [<c02577e4>] (serial_console_write+0x100/0x118)
       r5:c06f4d60 r4:c06f4d60
      [<c02576e4>] (serial_console_write) from [<c0061060>] (call_console_drivers.constprop.15+0x10c/0x124)
       r10:c06d2894 r9:c04e18b0 r8:00000028 r7:00000000 r6:c06d3559 r5:c06d2798
       r4:c06b9914 r3:c02576e4
      [<c0060f54>] (call_console_drivers.constprop.15) from [<c0062984>] (console_unlock+0x32c/0x430)
       r10:c06d30d8 r9:00000028 r8:c06dd518 r7:00000005 r6:00000000 r5:c06d2798
       r4:c06d2798 r3:00000028
      [<c0062658>] (console_unlock) from [<c0062e1c>] (vprintk_emit+0x394/0x4f0)
       r10:c06d2798 r9:c06d30ee r8:00000006 r7:00000005 r6:c06a78fc r5:00000027
       r4:00000003
      [<c0062a88>] (vprintk_emit) from [<c0062fa0>] (vprintk+0x28/0x30)
       r10:c060bd46 r9:00001000 r8:c06b9a90 r7:c06b9a90 r6:c06b994c r5:c06b9a3c
       r4:c0062fa8
      [<c0062f78>] (vprintk) from [<c0062fb8>] (vprintk_default+0x10/0x14)
      [<c0062fa8>] (vprintk_default) from [<c009cd30>] (printk+0x78/0x84)
      [<c009ccbc>] (printk) from [<c025afdc>] (credit_entropy_bits+0x17c/0x2cc)
       r3:00000001 r2:decade60 r1:c061a5ee r0:c061a523
       r4:00000006
      [<c025ae60>] (credit_entropy_bits) from [<c025bf74>] (add_interrupt_randomness+0x160/0x178)
       r10:466e7196 r9:1f536000 r8:fffeef74 r7:00000000 r6:c06b9a60 r5:c06b9a3c
       r4:dfbcf680
      [<c025be14>] (add_interrupt_randomness) from [<c006536c>] (irq_thread+0x1e8/0x248)
       r10:c006537c r9:c06cdf21 r8:c0064fcc r7:df791c24 r6:df791c00 r5:ffffe000
       r4:df525180
      [<c0065184>] (irq_thread) from [<c003fba4>] (kthread+0x108/0x11c)
       r10:00000000 r9:00000000 r8:c0065184 r7:df791c00 r6:00000000 r5:df791d00
       r4:decac000
      [<c003fa9c>] (kthread) from [<c00101b8>] (ret_from_fork+0x14/0x3c)
       r8:00000000 r7:00000000 r6:00000000 r5:c003fa9c r4:df791d00
      
      Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NDaniel Wagner <daniel.wagner@siemens.com>
      Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8afb1d2c
  20. 23 4月, 2018 2 次提交
    • U
      serial: sh-sci: Support for HSCIF RX sampling point adjustment · 63ba1e00
      Ulrich Hecht 提交于
      HSCIF has facilities that allow moving the RX sampling point by between
      -8 and 7 sampling cycles (one sampling cycles equals 1/15 of a bit
      by default) to improve the error margin in case of slightly mismatched
      bit rates between sender and receiver.
      
      This patch tries to determine if shifting the sampling point can improve
      the error margin and will enable it if so.
      Signed-off-by: NUlrich Hecht <ulrich.hecht+renesas@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      63ba1e00
    • G
      serial: sh-sci: Add support for dynamic instances · 7678f4c2
      Geert Uytterhoeven 提交于
      On DT platforms, the sh-sci driver requires the presence of "serialN"
      aliases in DT, from which instance IDs are derived.  If a DT alias is
      missing, the drivers fails to probe the corresponding serial port.
      
      This becomes cumbersome when considering DT overlays, as currently
      there is no upstream support for dynamically updating the /aliases node
      in DT.  Furthermore, even in the presence of such support, hardcoded
      instance IDs in independent overlays are prone to conflicts.
      
      Hence add support for dynamic instance IDs, to be used in the absence of
      a DT alias.  This makes serial ports behave similar to I2C and SPI
      buses, which already support dynamic instances.
      
      Ports in use are tracked using a simple bitmask of type unsigned long,
      which is sufficient to handle all current hardware (max. 18 ports).
      The maximum number of serial ports is still fixed, and configurable
      through Kconfig.  Range validation is done through both Kconfig and a
      compile-time check.
      
      Due to the fixed maximum number of serial ports, dynamic and static
      instances share the same ID space.  Static instances added later are
      rejected when conflicting with dynamic instances registered earlier.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7678f4c2
  21. 28 2月, 2018 1 次提交