From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751285AbdBUG7s (ORCPT ); Tue, 21 Feb 2017 01:59:48 -0500 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:35987 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751041AbdBUG72 (ORCPT ); Tue, 21 Feb 2017 01:59:28 -0500 From: Chunyan Zhang To: , , , , , CC: , , , , , Subject: [PATCH V2 3/3] serial: sprd: adjust TIMEOUT to a big value Date: Tue, 21 Feb 2017 14:55:04 +0800 Message-ID: <1487660104-15693-4-git-send-email-chunyan.zhang@spreadtrum.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487660104-15693-1-git-send-email-chunyan.zhang@spreadtrum.com> References: <1487660104-15693-1-git-send-email-chunyan.zhang@spreadtrum.com> MIME-Version: 1.0 Content-Type: text/plain X-MAIL: SHSQR01.spreadtrum.com v1L6uxX5069199 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 --- 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