From patchwork Fri Mar 22 15:44:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 160935 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp963341jan; Fri, 22 Mar 2019 08:49:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfg/3lcGco1plOg2V5SG7jwFzcXG922XQ6wp7KQWZYNZpJqi/+UuvQ1gDu76RfXHeteFFm X-Received: by 2002:aa7:9090:: with SMTP id i16mr9585060pfa.85.1553269760294; Fri, 22 Mar 2019 08:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553269760; cv=none; d=google.com; s=arc-20160816; b=GeTVUjbkQZ8EfTtINWR9snF0Nktq/qzb4HwskZQvIIEfdrhcv0Xh5+MAaq7Izv2t0a L/mJZSU1cJjw1Sa7lA1oJV2vJwbVLYWEtG/w/kFVv/coqvM2lL6FTl6dUuSCTwOD+95d gs35XgQKcmKIzHAkC0OT0wNBB8abBATKZNfjwz4P3fwyNBhJXmxypw92F/p2nPc6oREZ Jw0LLXOBAeLh1xSWIxUCsTY2AqFsZ8r9+pYWj3uMQpPN+GpUy5IX/XdmKMeTGrh601QX YV5IpvrGIwi7xGiNmAFpDFgKTgAkergbOd0xFmj/7Phs9zs+Yc15ZiazmV7HAjeOrrBG lQHw== 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=vzXC614BWk5Q/xRkC4zQg96lKzJsewlUTCuP6DgicsFJhltnn7HsVNBgIKKz4UTQdg Ki2URlGB932eAofE5c1N67jpN0Y+TTbAyROLySbqvneTA4cxQ4A7B5Q1ngi8sV4fH0qb YCjIc18h9yKw3sCftkUWfn0sSbvhqve833TEGoQ7D/wBhRuiWGQxMeobpjg4cqXJt0Zc t0R0haJ2QtJkiym7wC9a3wwL9jP5ZxM8oYUfCiSFLPCQP9WTO8MePoUvHu147C9agbX0 M0cRzlJCcgwTF1quHCUsBKyR0gah1uiK1zcwGSby0swXKg/FenN3Kc+8LV0gsRhVtZKX lD6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 i7si7662006plb.410.2019.03.22.08.49.20; Fri, 22 Mar 2019 08:49:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727363AbfCVPtT (ORCPT + 2 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 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-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: 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(-) -- 2.20.0 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 */