Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1699860 > unrolled thread

[PATCH] serial: stm32: fix pio transmit timeout

Started byBich HEMON <bich.hemon@st.com>
First post2017-07-31 11:40 +0200
Last post2017-07-31 11:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] serial: stm32: fix pio transmit timeout Bich HEMON <bich.hemon@st.com> - 2017-07-31 11:40 +0200

#1699860 — [PATCH] serial: stm32: fix pio transmit timeout

FromBich HEMON <bich.hemon@st.com>
Date2017-07-31 11:40 +0200
Subject[PATCH] serial: stm32: fix pio transmit timeout
Message-ID<u9fl8-4xv-27@gated-at.bofh.it>
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(-)

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web