> do we just leave the .major & .minor as NULL in struct uart_driver for > dynamic allocation? Yes > >> +config SERIAL_SPRD_NR > >> + int "Maximum number of sprd serial ports" > >> + depends on SERIAL_SPRD > >> + default "4" > > If you are doing dynamic allocation this should pretty much go away > I think you mean getting the number of uarts from dt and dynamically > allocate their port structure? Yes > > Also set the resulting baud back into the termios (see the 8250 termios > > for an example) > you mean something like this part ? > > /* Don't rewrite B0 */ > if (tty_termios_baud_rate(termios)) > tty_termios_encode_baud_rate(termios, baud, baud); Exactly. Alan -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html