1. 04 2月, 2015 1 次提交
  2. 03 2月, 2015 2 次提交
  3. 26 11月, 2014 4 次提交
  4. 11 11月, 2014 1 次提交
  5. 07 11月, 2014 2 次提交
  6. 06 11月, 2014 2 次提交
  7. 20 10月, 2014 1 次提交
  8. 29 9月, 2014 1 次提交
  9. 09 9月, 2014 1 次提交
    • P
      Revert "serial: uart: add hw flow control support configuration" · a6eec92e
      Peter Hurley 提交于
      This reverts commit 06aa82e4.
      This commit purports to enable auto CTS flow control for the 8250
      UART driver. However, the 8250 UART driver already supports auto
      CTS flow control via UART_CAP_AFE and UART_CAP_EFR. Indeed, this
      patch introduces another DT attribute for which an existing firmware
      flag already exists ("auto-flow-control"). Furthermore, the use of
      UPF_HARD_FLOW requires the UART driver to define .throttle and
      .unthrottle methods, neither of which are defined for the 8250 UART
      driver (which will result in a NULL ptr dereference). Finally, this patch
      supposes to fix existing bugs in the serial core for auto CTS-enabled
      hardware, but does not include the class of hardware for which these
      bugs exist.
      
      CC: Murali Karicheri <m-karicheri2@ti.com>
      CC: Rob Herring <robh+dt@kernel.org>
      Signed-off-by: NPeter Hurley <peter@hurleysoftware.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a6eec92e
  10. 29 5月, 2014 2 次提交
    • S
      printk/of_serial: fix serial console cessation part way through boot. · 7fa21dd8
      Stephen Chivers 提交于
      Commit 5f5c9ae5
      "serial_core: Unregister console in uart_remove_one_port()"
      fixed a crash where a serial port was removed but
      not deregistered as a console.
      
      There is a side effect of that commit for platforms having serial consoles
      and of_serial configured (CONFIG_SERIAL_OF_PLATFORM). The serial console
      is disabled midway through the boot process.
      
      This cessation of the serial console affects PowerPC computers
      such as the MVME5100 and SAM440EP.
      
      The sequence is:
      
      	bootconsole [udbg0] enabled
      	....
      	serial8250/16550 driver initialises and registers its UARTS,
      	one of these is the serial console.
      	console [ttyS0] enabled
      	....
      	of_serial probes "platform" devices, registering them as it goes.
      	One of these is the serial console.
      	console [ttyS0] disabled.
      
      The disabling of the serial console is due to:
      
      	a.  unregister_console in printk not clearing the
      	    CONS_ENABLED bit in the console flags,
      	    even though it has announced that the console is disabled; and
      
      	b.  of_platform_serial_probe in of_serial not setting the port type
      	    before it registers with serial8250_register_8250_port.
      
      This patch ensures that the serial console is re-enabled when of_serial
      registers a serial port that corresponds to the designated console.
      Signed-off-by: NStephen Chivers <schivers@csc.com>
      Tested-by: NStephen Chivers <schivers@csc.com>
      Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [unregister_console]
      Cc: stable <stable@vger.kernel.org> # 3.15
      
      ===
      The above failure was identified in Linux-3.15-rc2.
      
      Tested using MVME5100 and SAM440EP PowerPC computers with
      kernels built from Linux-3.15-rc5 and tty-next.
      
      The continued operation of the serial console is vital for computers
      such as the MVME5100 as that Single Board Computer does not
      have any grapical/display hardware.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7fa21dd8
    • M
      serial: uart: add hw flow control support configuration · 06aa82e4
      Murali Karicheri 提交于
      8250 uart driver currently supports only software assisted hw flow
      control. The software assisted hw flow control maintains a hw_stopped
      flag in the tty structure to stop and start transmission and use modem
      status interrupt for the event to drive the handshake signals. This is
      not needed if hw has flow control capabilities. This patch adds a
      DT attribute for enabling hw flow control for a uart port. Also skip
      stop and start if this flag is present in flag field of the port
      structure.
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      CC: Rob Herring <robh+dt@kernel.org>
      CC: Pawel Moll <pawel.moll@arm.com>
      CC: Mark Rutland <mark.rutland@arm.com>
      CC: Ian Campbell <ijc+devicetree@hellion.org.uk>
      CC: Kumar Gala <galak@codeaurora.org>
      CC: Randy Dunlap <rdunlap@infradead.org>
      CC: Jiri Slaby <jslaby@suse.cz>
      CC: Santosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      06aa82e4
  11. 08 1月, 2014 1 次提交
  12. 04 6月, 2013 1 次提交
  13. 26 3月, 2013 2 次提交
  14. 12 3月, 2013 1 次提交
  15. 06 2月, 2013 1 次提交
  16. 22 11月, 2012 2 次提交
  17. 01 11月, 2012 1 次提交
  18. 26 10月, 2012 1 次提交
  19. 27 7月, 2012 1 次提交
  20. 18 7月, 2012 2 次提交
  21. 13 6月, 2012 1 次提交
  22. 19 4月, 2012 1 次提交
  23. 25 10月, 2011 1 次提交
  24. 25 8月, 2011 1 次提交
  25. 24 8月, 2011 1 次提交
  26. 10 7月, 2011 1 次提交
  27. 04 7月, 2011 1 次提交
  28. 01 7月, 2011 1 次提交
  29. 19 5月, 2011 1 次提交
    • G
      drivercore: revert addition of of_match to struct device · b1608d69
      Grant Likely 提交于
      Commit b826291c, "drivercore/dt: add a match table pointer to struct
      device" added an of_match pointer to struct device to cache the
      of_match_table entry discovered at driver match time.  This was unsafe
      because matching is not an atomic operation with probing a driver.  If
      two or more drivers are attempted to be matched to a driver at the
      same time, then the cached matching entry pointer could get
      overwritten.
      
      This patch reverts the of_match cache pointer and reworks all users to
      call of_match_device() directly instead.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      b1608d69
  30. 01 3月, 2011 1 次提交