OSDN Git Service

serial: sprd: adjust TIMEOUT to a big value
authorWei Qiao <wei.qiao@spreadtrum.com>
Mon, 27 Mar 2017 06:06:42 +0000 (14:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:23:19 +0000 (06:23 +0200)
commit e1dc9b08051a2c2e694edf48d1e704f07c7c143c upstream.

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>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c

index 1e302ca..176f0a2 100644 (file)
@@ -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 */