serial: copy UART properties of UPF_FIXED_TYPE ports provisioned using early_serial_setup
Quoted 8 lines · On Mon, 26 Oct 2009 12:20:02 +0100 Shmulik Ladkani <[email protected]> wrote:
Augment the
UPF_FIXED_TYPElogic, which currently applies to UART ports provisioned usingplatform_device_register.The suggested patch applies same logic into '
serial8250_register_ports', making UART ports provisioned usingearly_serial_setupinherit their properties from theuart_configentry.The patch applies to linux-2.6.32-rc5
Re-submit (previous mailer messed-up whitespace).
Signed-off-by Shmulik Ladkani <[email protected]>
---
drivers/serial/8250.c +8 -0
@@ -2704,6 +2704,14 @@ serial8250_register_ports(struct uart_drstruct uart_8250_port *up = &serial8250_ports[i]; up->port.dev = dev; + +if (up->port.flags &UPF_FIXED_TYPE ) { + up->port.fifosize = + uart_config[up->port.type].fifo_size; + up->capabilities = uart_config[up->port.type].flags; + up->tx_loadsz = uart_config[up->port.type].tx_loadsz; + } +uart_add_one_port (drv, &up->port); } }
Signature · 1 line
Shmulik Ladkani Jungo Ltd.