[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1487660104-15693-4-git-send-email-chunyan.zhang@spreadtrum.com>
Date: Tue, 21 Feb 2017 14:55:04 +0800
From: Chunyan Zhang <chunyan.zhang@...eadtrum.com>
To: <robh+dt@...nel.org>, <mark.rutland@....com>,
<gregkh@...uxfoundation.org>, <catalin.marinas@....com>,
<will.deacon@....com>, <arnd@...db.de>
CC: <orson.zhai@...eadtrum.com>, <sudeep.holla@....com>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <zhang.lyra@...il.com>
Subject: [PATCH V2 3/3] serial: sprd: adjust TIMEOUT to a big value
From: Wei Qiao <wei.qiao@...eadtrum.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@...eadtrum.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@...eadtrum.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 699447a..cc1a55e 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
Powered by blists - more mailing lists