Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "serial: fsl_lpuart: Reset prior to registration"
This reverts commit 4199425. The lpuart_global_reset() uses fields set by the registration to find out if we are a console or not. Executing it before registration may make it fail. E.g. on a imx8qm-mek the kernel stops booting without any visable output when the switch to a console is done. [ 1.219604] mxs-dma 5b810000.dma-apbh: initialized [ 1.228743] Bus freq driver module loaded [ 1.241522] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 1.252161] 5a060000.serial: ttyLP0 at MMIO 0x5a060010 (irq = 69, base_baud = 5000000) is a FSL_LPUAR[ 1.261335] printk: console [ttyLP0] enabled [ 1.261335] printk: console [ttyLP0] enabled [ 1.269756] printk: bootconsole [lpuart32] disabled [ 1.269756] printk: bootconsole [lpuart32] disabled While at it also remove the second call to uart_add_one_port() which sneaked in during merging of stable patches. Also, since we now reset after uart_add_one_port() call sport->port.rs485_config() explicitely again. The reset may have reverted the effects of the uart_add_one_port -> sport->port.rs485_config call chain. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
- Loading branch information