From: Wei Qiao Date: Mon, 27 Mar 2017 06:06:42 +0000 (+0800) Subject: serial: sprd: adjust TIMEOUT to a big value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1dc9b08051a2c2e694edf48d1e704f07c7c143c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git serial: sprd: adjust TIMEOUT to a big value 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 Signed-off-by: Chunyan Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c index d98e3dc4838e..90996ad97b37 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 */