serial: stm32: fix pio transmit timeout

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>
This commit is contained in:
Gerald Baeza 2017-07-31 09:31:52 +00:00 committed by Greg Kroah-Hartman
parent a704ddc250
commit a61d9e6e30
1 changed files with 1 additions and 1 deletions

View File

@ -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");