1. 14 12月, 2015 4 次提交
  2. 18 10月, 2015 1 次提交
  3. 05 10月, 2015 2 次提交
  4. 01 6月, 2015 2 次提交
  5. 11 5月, 2015 1 次提交
  6. 28 4月, 2015 1 次提交
    • M
      serial: of-serial: Remove device_type = "serial" registration · 6befa9d8
      Michal Simek 提交于
      Do not probe all serial drivers by of_serial.c which are using
      device_type = "serial"; property. Only drivers which have valid
      compatible strings listed in the driver should be probed.
      
      When PORT_UNKNOWN is setup probe will fail anyway.
      
      Arnd quotation about driver historical background:
      "when I wrote that driver initially, the idea was that it would
      get used as a stub to hook up all other serial drivers but after
      that, the common code learned to create platform devices from DT"
      
      This patch fix the problem with on the system with xilinx_uartps and
      16550a where of_serial failed to register for xilinx_uartps and because
      of irq_dispose_mapping() removed irq_desc. Then when xilinx_uartps was asking
      for irq with request_irq() EINVAL is returned.
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      CC: <stable@vger.kernel.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6befa9d8
  7. 15 4月, 2015 1 次提交
  8. 27 3月, 2015 2 次提交
  9. 07 3月, 2015 1 次提交
  10. 04 2月, 2015 1 次提交
  11. 03 2月, 2015 2 次提交
  12. 26 11月, 2014 4 次提交
  13. 11 11月, 2014 1 次提交
  14. 07 11月, 2014 2 次提交
  15. 06 11月, 2014 2 次提交
  16. 20 10月, 2014 1 次提交
  17. 29 9月, 2014 1 次提交
  18. 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
  19. 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
  20. 08 1月, 2014 1 次提交
  21. 04 6月, 2013 1 次提交
  22. 26 3月, 2013 2 次提交
  23. 12 3月, 2013 1 次提交
  24. 06 2月, 2013 1 次提交
  25. 22 11月, 2012 2 次提交