mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
serial: stm32: fix initialization of RS485 mode
Configure RS485 mode during port initialization.
Fixes: 1bcda09d29 ("serial: stm32: add support for RS485 hardware control mode")
Signed-off-by: Bich Hemon <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
dbb3fb45ed
commit
7d8f68619e
1 changed files with 4 additions and 0 deletions
|
|
@ -809,6 +809,10 @@ static int stm32_init_port(struct stm32_port *stm32port,
|
|||
port->ops = &stm32_uart_ops;
|
||||
port->dev = &pdev->dev;
|
||||
port->irq = platform_get_irq(pdev, 0);
|
||||
port->rs485_config = stm32_config_rs485;
|
||||
|
||||
stm32_init_rs485(port, pdev);
|
||||
|
||||
stm32port->wakeirq = platform_get_irq(pdev, 1);
|
||||
stm32port->fifoen = stm32port->info->cfg.has_fifo;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue