Skip to content

Commit

Permalink
serial: stm32: fix initialization of RS485 mode
Browse files Browse the repository at this point in the history
Configure RS485 mode during port initialization.

Fixes: 1bcda09 ("serial: stm32: add support for RS485 hardware control mode")
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Bich HEMON authored and Greg Kroah-Hartman committed Mar 15, 2018
1 parent dbb3fb4 commit 7d8f686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/tty/serial/stm32-usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7d8f686

Please sign in to comment.