diff options
author | Wei Qiao <wei.qiao@spreadtrum.com> | 2017-03-27 02:06:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 12:42:47 -0400 |
commit | e1dc9b08051a2c2e694edf48d1e704f07c7c143c (patch) | |
tree | f69fa5b45a89bdd096ba4cd6b563bb3755fe1826 | |
parent | 26b82caae4722191edac5f7b13d172105f150926 (diff) |
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 <wei.qiao@spreadtrum.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/sprd_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
36 | #define SPRD_FIFO_SIZE 128 | 36 | #define SPRD_FIFO_SIZE 128 |
37 | #define SPRD_DEF_RATE 26000000 | 37 | #define SPRD_DEF_RATE 26000000 |
38 | #define SPRD_BAUD_IO_LIMIT 3000000 | 38 | #define SPRD_BAUD_IO_LIMIT 3000000 |
39 | #define SPRD_TIMEOUT 256 | 39 | #define SPRD_TIMEOUT 256000 |
40 | 40 | ||
41 | /* the offset of serial registers and BITs for them */ | 41 | /* the offset of serial registers and BITs for them */ |
42 | /* data registers */ | 42 | /* data registers */ |