Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp536744ybe; Wed, 11 Sep 2019 00:24:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7vnFUeMjvBz+5TFv8Uf9uE65DkcmP45yQbmlZwVpsGXTlI1us5PAnsHv+5Ss362rGa3Ik X-Received: by 2002:a50:f285:: with SMTP id f5mr28530377edm.269.1568186646712; Wed, 11 Sep 2019 00:24:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568186646; cv=none; d=google.com; s=arc-20160816; b=uASemDnr/1qhd93n2rJ0T2+SH6UDJ13hTbOrHsLYkFnJtcmXF3anX0TBOROFrVzszc ef+5jL1sFPD1J5GMmexW5AtDvAxuGtC+9A2iv+4ufkb5GVooAAKEl/CWxiMr1jl3ScK4 PsAE7aGqyap4dhdIFxMzUakpGqYo5ysdt9qmw2cuoWLw1m4uNztyl2rcopZ+o4ISdFIm /VigjUCRQnwxFclEUWswgEQflDBc7S+FLGOHTT8PPvpX/sQpScaZr6tDcVqKcr9wf4oN l7TjalYzV9cq0B/atI8pYyw8ARlTFvAeFXNM20nAC4cd7RihQ59ihekLECOv1a2QlOZ2 v0LA== 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 :dkim-signature; bh=0a/Ttcv1b84BQ/BKZwWZSK7rdmYU6EM1Hc5Czp/KOEk=; b=vuYv5qDEZmVz/2OtvX8hMpX5ALiqFFlGkJzTo0PZYcJ8kmuNCWmyl90taj57aUSazN KvE7eDttXBBZusk5FFjPEEmK7RdY4tr6BXd4X01emXBWmmJjUkd4sWBNSASI90KZ7BAp NtWHCunqdzsdP65WtJbbjYttavUo77YVnFdHUPOXzZ+WzB/rC29soeTRj9pQPwp+wyEA RYQ0z1qaUwJ4GJMm845003VhdxgwY0ATbfSe9BqDD8LYxD+xZa3BMXn8I41IMiljoICI q7jES+GqSjxr0QyDUPAYw/9PJ3ytMdq55h0Zycsr1qRnsfvbxYP5RMiNu/qfVZzji0sA 1fUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V3qcTtdd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z35si13228859edb.146.2019.09.11.00.23.42; Wed, 11 Sep 2019 00:24:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V3qcTtdd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726893AbfIKHVy (ORCPT + 99 others); Wed, 11 Sep 2019 03:21:54 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44477 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbfIKHVy (ORCPT ); Wed, 11 Sep 2019 03:21:54 -0400 Received: by mail-pf1-f195.google.com with SMTP id q21so13082146pfn.11; Wed, 11 Sep 2019 00:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0a/Ttcv1b84BQ/BKZwWZSK7rdmYU6EM1Hc5Czp/KOEk=; b=V3qcTtddc3yo40buBXwwrD0vajRM89aCkIV7zLE/1wk+X29XHOD0VWcv0LPzr0ldL0 XYrwSqHwCDDDe1MHbBhPKOUzd7L60OWuowGP1hj4tnYItXP/T0f/eTHBkIo8DzLtfxTU ZDMCLmWlVB5HIS3gztSzQYSaHfU0wFvskNTELiIcBs9FkXU7IB2C1FBDazdOZ/7FGXnd eB02OloHbFSvh24hJbOKWWAKHoUAwNkYIfrSG6LckQj50p6ATOVBq3GAI+wpF1VUkwFX jJsayheq92Stc9Z+ZY8EiocHsJTJ8XTNuKpTIVlIfTXvvGrJEeIzR3GLjUYWSOcz4f0t XfhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0a/Ttcv1b84BQ/BKZwWZSK7rdmYU6EM1Hc5Czp/KOEk=; b=nCaLmRXkoRFiFzO+xKvbsWx4F2yWDm2Kg2dEyIlJXscvxKE1KPzsFSP04ozYZsGr57 z73JvDK+yU+RxH1rOv1R2NLSWFGMGhGBawP4lrdGrngblAuR7A9y+HbE/Bet1cXEuVE7 X6C/fCiwfA7DPbGJk+KXctiPVJSYgUgfIRpLwSfMRHrT1YZYd19+gevAA9hAkBiR9x1u 8JWLqd3quV7rjClPGUb0yHYmRdp5g0bRrbkiJxpMOYtthrToLa+6AItV6KjGm6mjHJVG z1TD2YUjBwscZTI1lWDy64B5NuM+/zjcPMIEnHtrdy3ANKaiN7i2qx0tHkoA/js1ToIw EqqA== X-Gm-Message-State: APjAAAUWjlAQgkPIqeaGo8TK6dkpTKLXWRNECI84b4HSyVFc79jZ22j1 +6F55u7gqOgEFMyesrJ2leU= X-Received: by 2002:a17:90a:890c:: with SMTP id u12mr3901328pjn.117.1568186513912; Wed, 11 Sep 2019 00:21:53 -0700 (PDT) Received: from gli-arch.genesyslogic.com.tw (60-251-58-169.HINET-IP.hinet.net. [60.251.58.169]) by smtp.gmail.com with ESMTPSA id r2sm34227993pfq.60.2019.09.11.00.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2019 00:21:53 -0700 (PDT) From: Ben Chuang To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, johnsonm@danlj.org, ben.chuang@genesyslogic.com.tw, Ben Chuang Subject: [PATCH V9 1/5] mmc: sdhci: Change timeout of loop for checking internal clock stable Date: Wed, 11 Sep 2019 15:22:10 +0800 Message-Id: <0c090d866e2b4cd7966672b1b6cf5667a5ce39dd.1568184581.git.benchuanggli@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Chuang According to section 3.2.1 internal clock setup in SD Host Controller Simplified Specifications 4.20, the timeout of loop for checking internal clock stable is defined as 150ms. Signed-off-by: Ben Chuang Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johnson Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 59acf8e3331e..bed0760a6c2a 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1636,8 +1636,8 @@ void sdhci_enable_clk(struct sdhci_host *host, u16 clk) clk |= SDHCI_CLOCK_INT_EN; sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL); - /* Wait max 20 ms */ - timeout = ktime_add_ms(ktime_get(), 20); + /* Wait max 150 ms */ + timeout = ktime_add_ms(ktime_get(), 150); while (1) { bool timedout = ktime_after(ktime_get(), timeout); -- 2.23.0