Skip to content

Commit

Permalink
serial: stm32: fix pio transmit timeout
Browse files Browse the repository at this point in the history
100µs was too short for low speed transmission
(9600bps)

Signed-off-by: Gerald Baeza <gerald.baeza@st.com>
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Gerald Baeza authored and Greg Kroah-Hartman committed Aug 28, 2017
1 parent a704ddc commit a61d9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/stm32-usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static void stm32_transmit_chars_pio(struct uart_port *port)
ret = readl_relaxed_poll_timeout_atomic(port->membase + ofs->isr,
isr,
(isr & USART_SR_TXE),
10, 100);
10, 100000);

if (ret)
dev_err(port->dev, "tx empty not set\n");
Expand Down

0 comments on commit a61d9e6

Please sign in to comment.