summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/stm32-usart.c
diff options
context:
space:
mode:
authorGerald Baeza <gerald.baeza@st.com>2017-07-31 09:31:52 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 20:51:19 +0200
commita61d9e6e30d48b67fe864ba4bb9babac7b178312 (patch)
tree17b0a3f37e01295bdb11bbe5be1aee4cdae02460 /drivers/tty/serial/stm32-usart.c
parenta704ddc2504610ba4227d1ae036e962e530c8c0b (diff)
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>
Diffstat (limited to 'drivers/tty/serial/stm32-usart.c')
-rw-r--r--drivers/tty/serial/stm32-usart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c
index 72c0ec145527..b16e7e796155 100644
--- a/drivers/tty/serial/stm32-usart.c
+++ b/drivers/tty/serial/stm32-usart.c
@@ -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");