serial: stm32: fix pio transmit timeout

Submitted by Bich HEMON on July 31, 2017, 9:31 a.m.

Details

Message ID 1501493505-27933-1-git-send-email-bich.hemon@st.com
State New
Headers show

Commit Message

Bich HEMON July 31, 2017, 9:31 a.m.
From: Gerald Baeza <gerald.baeza@st.com>


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>

---
 drivers/tty/serial/stm32-usart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1

Patch hide | download patch | download mbox

diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c
index 72c0ec1..b16e7e7 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");