On 13. 02. 23, 10:40, Ilpo Järvinen wrote:
LCR is WO, right? But maybe I'm confused by this really weird HW design?
LCR is not WO and it is read during autoconfig too:
8250_port.c=static int size_fifo(struct uart_8250_port *up)
8250_port.c: old_lcr = serial_in(up, UART_LCR);
8250_port.c=static unsigned int autoconfig_read_divisor_id(struct uart_8250_port *p)
8250_port.c: old_lcr = serial_in(p, UART_LCR);
8250_port.c=static void autoconfig(struct uart_8250_port *up)
8250_port.c: save_lcr = serial_in(up, UART_LCR);
Although the only thing the value is used for is to write it back to LCR.
Yeah, of course LCR is RW and is NOT shared.
--
js
suse labs