linux/drivers/tty/serial/8250
Sebastian Andrzej Siewior 59b3e898dd tty: serial: 8250_core: use the ->line argument as a hint in serial8250_find_match_or_unused()
Tony noticed that the old omap-serial driver picked the uart "number"
based on the hint given from device tree or platform device's id.
The 8250 based omap driver doesn't do this because the core code does
not honour the ->line argument which is passed by the driver.

This patch aims to keep the same behaviour as with omap-serial. The
function will first try to use the line suggested ->line argument and
then fallback to the old strategy in case the port is taken.

That means the the third uart will always be ttyS2 even if the previous
two have not been enabled in DT.

Reviewed-by: Tony Lindgren <tony@atomide.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-26 18:01:56 +02:00
..
8250_accent.c
8250_acorn.c tty: remove use of __devexit 2012-11-21 15:27:46 -08:00
8250_boca.c
8250_core.c tty: serial: 8250_core: use the ->line argument as a hint in serial8250_find_match_or_unused() 2014-09-26 18:01:56 +02:00
8250_dma.c serial: 8250_dma: check the result of TX buffer mapping 2014-05-28 13:07:27 -07:00
8250_dw.c serial: 8250_dw: Add ACPI ID for Intel Braswell 2014-09-08 16:33:56 -07:00
8250_early.c tty/serial: fix 8250 early console option passing to regular console 2014-06-19 13:07:26 -07:00
8250_em.c tty: delete non-required instances of include <linux/init.h> 2014-01-07 17:05:21 -08:00
8250_exar_st16c554.c
8250_fintek.c serial: Add support for Fintek F81216A LPC to 4 UART 2014-09-08 15:26:26 -07:00
8250_fourport.c
8250_fsl.c serial: 8250: introduce up_to_u8250p() helper 2014-07-17 18:16:23 -07:00
8250_gsc.c parisc: Fix interrupt routing for C8000 serial ports 2013-07-31 23:42:32 +02:00
8250_hp300.c serial: 8250_hp300: trivial: fix symbol name in #warning message 2014-09-08 16:03:47 -07:00
8250_hub6.c
8250_mtk.c tty: serial: 8250: Add Mediatek UART driver 2014-09-10 06:59:41 -07:00
8250_pci.c serial: 8250: introduce up_to_u8250p() helper 2014-07-17 18:16:23 -07:00
8250_pnp.c tty: delete non-required instances of include <linux/init.h> 2014-01-07 17:05:21 -08:00
8250.h tty: serial: 8250_core: add run time pm 2014-09-26 18:01:56 +02:00
Kconfig tty: serial: 8250: Add Mediatek UART driver 2014-09-10 06:59:41 -07:00
Makefile tty: serial: 8250: Add Mediatek UART driver 2014-09-10 06:59:41 -07:00
serial_cs.c tty: delete non-required instances of include <linux/init.h> 2014-01-07 17:05:21 -08:00