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


Groups > linux.kernel > #1609480 > unrolled thread

[PATCH V5 4/4] serial: sprd: adjust TIMEOUT to a big value

Started byChunyan Zhang <chunyan.zhang@spreadtrum.com>
First post2017-03-27 08:20 +0200
Last post2017-03-27 08:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V5 4/4] serial: sprd: adjust TIMEOUT to a big value Chunyan Zhang <chunyan.zhang@spreadtrum.com> - 2017-03-27 08:20 +0200

#1609480 — [PATCH V5 4/4] serial: sprd: adjust TIMEOUT to a big value

FromChunyan Zhang <chunyan.zhang@spreadtrum.com>
Date2017-03-27 08:20 +0200
Subject[PATCH V5 4/4] serial: sprd: adjust TIMEOUT to a big value
Message-ID<tpwat-3E0-1@gated-at.bofh.it>
From: Wei Qiao <wei.qiao@spreadtrum.com>

SPRD_TIMEOUT was 256, which is too small to wait until the status
switched to workable in a while loop, so that the earlycon could
not work correctly.

Signed-off-by: Wei Qiao <wei.qiao@spreadtrum.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
---
 drivers/tty/serial/sprd_serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c
index d98e3dc..90996ad 100644
--- a/drivers/tty/serial/sprd_serial.c
+++ b/drivers/tty/serial/sprd_serial.c
@@ -36,7 +36,7 @@
 #define SPRD_FIFO_SIZE		128
 #define SPRD_DEF_RATE		26000000
 #define SPRD_BAUD_IO_LIMIT	3000000
-#define SPRD_TIMEOUT		256
+#define SPRD_TIMEOUT		256000
 
 /* the offset of serial registers and BITs for them */
 /* data registers */
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web