From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F6D8C43381 for ; Tue, 26 Mar 2019 06:46:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5213F2070B for ; Tue, 26 Mar 2019 06:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553582807; bh=UxPkjr5erKldwoJDywvA1LTjFawrd7Oht1e6RJQl3Rk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=GC9MW88bjInfw6qybjVbdLHQyOEMxkRO5Fzokaq1z330352lGQZAxmkHmJLe5pQki z+9g4alfy0LTVuS8trLUilD20CGv7WW8Z1xf4KuMML9q0ycOpfBIT7sea5FvJQZr+i 7nXrV9PA3NjVZ4z5K5Tb+F+f1hZY+jxw55k5Syoo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731477AbfCZGcq (ORCPT ); Tue, 26 Mar 2019 02:32:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:42176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731497AbfCZGcp (ORCPT ); Tue, 26 Mar 2019 02:32:45 -0400 Received: from localhost (unknown [104.132.152.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B5B720823; Tue, 26 Mar 2019 06:32:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553581964; bh=UxPkjr5erKldwoJDywvA1LTjFawrd7Oht1e6RJQl3Rk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IguofH3W3/YX549McW8lcn3Ghjl/u/bJHTmBPZRx9IUuymMLCDqz3aUbbLyurzR5j QOv9n14Gqi4bUVqqJ8LRrzhJzjs2ESBzoSEpPlMAf3Fqa76ch9s4n3+e1C3daNnTA6 QS4DLJ9CLpp5vUg6atEePdIHwP9jzQy98UVEiYEQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wei Qiao , Chunyan Zhang , Arnd Bergmann Subject: [PATCH 4.9 20/30] serial: sprd: adjust TIMEOUT to a big value Date: Tue, 26 Mar 2019 15:29:59 +0900 Message-Id: <20190326042608.252436998@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190326042607.558087893@linuxfoundation.org> References: <20190326042607.558087893@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wei Qiao 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 Signed-off-by: Chunyan Zhang Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/sprd_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 */