OpenCloudOS-Kernel/drivers/tty/serial/8250
Karthik Manamcheri cfcec52e97 serial: 8250: Make SERIAL_8250_RUNTIME_UARTS work correctly
Consider a situation where I have an ARM based system
and therefore no legacy ports. Say, I have two
memory-mapped ports. I use device tree to describe the
ports. What would be the config options I set so that
I get only the two ports in my system? I do not want
legacy ports being created automatically and I want
it to be flexible enough that it creates the devices
based only on the device tree. I expected setting
SERIAL_8250_RUNTIME_UARTS = 0 to work because the
description said, "Set this to the maximum number of
serial ports you want the kernel to register at boot
time." Unfortunately, even though SERIAL_8250_NR_UARTS
was set to the default value of 4, I did not get any device
nodes (because SERIAL_8250_RUNTIME_UARTS was 0). This
is what this change is addressing.

SERIAL_8250_NR_UARTS controls the maximum number of ports
you can support. SERIAL_8250_RUNTIME_UARTS specifies the
number of ports you want to create automatically for legacy
ports at boot time. All other ports will be created
when serial8250_register_port is called (and if does not exceed
the total number of supported ports as specified by
SERIAL_8250_NR_UARTS).

Signed-off-by: Karthik Manamcheri <karthik.manamcheri@ni.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-28 15:50:40 -07:00
..
8250.c serial: 8250: Make SERIAL_8250_RUNTIME_UARTS work correctly 2013-03-28 15:50:40 -07:00
8250.h serial: 8250: remove a few lines of dead code 2013-03-25 16:36:48 -07:00
8250_accent.c serial: group all the 8250 related code together 2012-01-24 11:23:59 -08:00
8250_acorn.c tty: remove use of __devexit 2012-11-21 15:27:46 -08:00
8250_boca.c serial: group all the 8250 related code together 2012-01-24 11:23:59 -08:00
8250_dma.c serial: 8250_dma: TX optimisation 2013-01-16 07:36:10 -08:00
8250_dw.c Merge 3.8-rc5 into tty-next 2013-01-25 13:27:36 -08:00
8250_early.c drivers/tty/serial/8250: use strlcpy instead of strcpy 2013-01-20 15:50:36 -08:00
8250_em.c tty: remove use of __devexit 2012-11-21 15:27:46 -08:00
8250_exar_st16c554.c serial: group all the 8250 related code together 2012-01-24 11:23:59 -08:00
8250_fourport.c serial: group all the 8250 related code together 2012-01-24 11:23:59 -08:00
8250_fsl.c serial: group all the 8250 related code together 2012-01-24 11:23:59 -08:00
8250_gsc.c 8250: use the 8250 register interface not the legacy one 2012-07-12 14:46:22 -07:00
8250_hp300.c tty: remove use of __devexit 2012-11-21 15:27:46 -08:00
8250_hub6.c serial: group all the 8250 related code together 2012-01-24 11:23:59 -08:00
8250_pci.c serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller 2013-03-12 08:53:23 -07:00
8250_pnp.c tty/8250_pnp: serial port detection regression since v3.7 2013-03-12 08:53:23 -07:00
Kconfig serial: ralink: adds support for the serial core found on ralink wisoc 2013-01-30 00:15:34 -05:00
Makefile serial: 8250: Add support for dmaengine 2013-01-15 23:03:00 -08:00
serial_cs.c 8250: use the 8250 register interface not the legacy one 2012-07-12 14:46:22 -07:00