Commit a61d9e6e authored by Gerald Baeza's avatar Gerald Baeza Committed by Greg Kroah-Hartman

serial: stm32: fix pio transmit timeout

100µs was too short for low speed transmission
(9600bps)
Signed-off-by: default avatarGerald Baeza <gerald.baeza@st.com>
Signed-off-by: default avatarBich Hemon <bich.hemon@st.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a704ddc2
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment