Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp800183img; Fri, 22 Mar 2019 08:50:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmu3YmnrSIOjubPsdS/j3ZWutSfch18thHyk30B5M+EhKQdJQG5+RA8pT3NYKDk3RWgsq1 X-Received: by 2002:aa7:90c7:: with SMTP id k7mr9806229pfk.186.1553269811782; Fri, 22 Mar 2019 08:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553269811; cv=none; d=google.com; s=arc-20160816; b=d9MD3fchEy1mbAZdYRjbDrKGC69qkjgafy3s5AfjagMOHAK0Ue/GkZzZ63S5fx0PDv BSxfFoiW1DZDQ1SUDOyvlihFvQStOMMp+7w/LksM2ijaSjn9BOaeAFUvJgAzRSyP0PlQ NxpcGCgNf1MXBySgfOVaxKzNK6bYuL1DWJWiYr9AcVxd9aES26ZqaDFQHsvPWpYvBdwo wIFiVRWwM7sTK/om6vT3Qdwtb6oiVYcGsM6lWhtwx5/wmFkaBhbcaiI6JwhDhkiM9uZ5 mSNzTeVijYI3ssmCYPadY+qSZPeRRRfil6NqVdfbdH+8yM3YLvOBgKHouvPJcLJKDXTn A5Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9vYnpF0JOvXh3MjqQx13fnQbvwag2T/B9lUG1h/xqPk=; b=ZC4k8cGVruFcAWQpTTuzRl+pveSMCHXZk/JXna6HiYUGdyX5rXAH5WAPsUFG1lCPJb b5ETKKysur0ILIlV2iOwBPosnjrNP98Ycc2c1K2LgwuU47/6lH0QWly5NuzYEnGo6Ahb b7ESwE7/QZL7oeTwXsRmSY42lG70R8btSZMOFcSvfL0PYv13oUG3SuWMWgz+yjFkMpbU jZVN2/FyGbPdv8lHUYu7sBEwlJRNE+PrgRW+QQF4kYE++81OmqrImhLSOD519GWuY2Sp FuAHXpy5zRAnR8AB7xdrQXlt7O2tngX6w/afQdD/xoYYNwMUjjbNhgdzRHu+h9PO53ea Gzsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q29si7289093pfi.98.2019.03.22.08.49.56; Fri, 22 Mar 2019 08:50:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727824AbfCVPtT (ORCPT + 99 others); Fri, 22 Mar 2019 11:49:19 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:54401 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727169AbfCVPtT (ORCPT ); Fri, 22 Mar 2019 11:49:19 -0400 Received: from wuerfel.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MkYg4-1ginIy0yRq-00m2to; Fri, 22 Mar 2019 16:48:34 +0100 From: Arnd Bergmann 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 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> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190322154425.3852517-1-arnd@arndb.de> References: <20190322154425.3852517-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:gOhT/IAeaMO+pVMjIITVJXtnTKyYeueytjXJBKFQR9atY7weLTO Kf33YvM5tw3IaV0jxPrO1kIi3edMG0BnyzSxkpC88q9JkC/vLbbpJnKUq+BGdivOlom8t/H ycTaBzF9E3eXgO5oTZsuSPbY1yBRxFrYq1phIx/vDYqKg8eFFQZJnTvT45I5K13X3ObbOV1 EHwxj+5ZJ0u5+VLQyBOvw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:WOTRinDg7jI=:/d4Ar9PKPt5xNBU7WBQvA9 /5yXWaOyD3Q91BImD86rnhYghtCZRuPjYgrcxz4Kl34q3wVZk/QW1sobxJpyLol5zPeqFc/oB zNee5gLEOIJlbB18lKB6+29Y8z++03274bZr/1ssd64sbPm3UUqpMCGuY4DD6Z012yaRQl2Ge xEytxJ8LJ85C8D8skBEGzwQyWnIvtv2fmL2jYgVPf5TWDnnCZUqf9Miu28Pj+dYkj51+JOnKO 4fYWz62+uTA8P7b6l6goffR3cw95NshUJDJdITaOQjTWaS0qhj4YH6d/Ofk07/eLWWGRStJRu IvQ2j69H3rn3MTXxGvV8zNUC/CwEoFAED3rWi970egGuy9dZl1TrPLnd/JQb5Ed3qgmL11iV1 Q1eUcczgcKHE1FkMl28sdIa/m/nC4nlSSufUUEnTZnskzNDOc293d1d5D1ZSNLHVMOEteEa+v eLhu1eNCwTWtFN7PEZsvbooy1KnRo9H1wB6nyLOq1k4LgJk71pkrq2Xn6LI67xAS6xkLP3jEr ClLM5OEOAip5NoDyXaCuvL+NfrZDDGOAoVA/RSujQbhtPFCmuzO9LQrR28km43imHO9vjkRwc z6cwJ2Kv8rKcNPIF4Vu+9pey92lAyauNlzZzvrCrBkyNBb/mLGcoADF5z8+BrBxgKN7tzDuBv WSn0X3CfhN7vBa0NS2SB4886WdqWb1K1jIwFI0l8rN61A5CczciUvgtHFtR8zUoKBgDru8bhL Jh6g/A9y66vRgVLLdILFz5yCZ3ShJ8AafFsiGA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk 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 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