From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: [BACKPORT 4.4.y 19/25] serial: sprd: adjust TIMEOUT to a big value Date: Fri, 22 Mar 2019 16:44:10 +0100 Message-ID: <20190322154425.3852517-20-arnd@arndb.de> References: <20190322154425.3852517-1-arnd@arndb.de> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20190322154425.3852517-1-arnd@arndb.de> Sender: stable-owner@vger.kernel.org To: stable@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: Wei Qiao , Chunyan Zhang , Arnd Bergmann , Lanqing Liu , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-serial@vger.kernel.org From: Wei Qiao 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 (cherry picked from commit e1dc9b08051a2c2e694edf48d1e704f07c7c143c) Signed-off-by: Arnd Bergmann --- 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 1e302caaa450..176f0a2bf9d9 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.20.0