Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp99313ybl; Thu, 29 Aug 2019 19:25:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7x0Z6VjoO1x9nSqWmBOCsCL/PtlzRLYRbWkLOXNnS3lhkUvM8QnV2Nvbr2kUHsWDhGXzU X-Received: by 2002:aa7:920b:: with SMTP id 11mr14908234pfo.231.1567131955474; Thu, 29 Aug 2019 19:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567131955; cv=none; d=google.com; s=arc-20160816; b=JDZ9ERY+mt46+A0c5ZWMUDL5lW/Q/P35Xm6fZIw3KmWW5acIstjD2QtzxDlKwm+ACH xZvULSPb/XbYavvmZeYKX0ntTXMTIX8ZinRhupxsAFSs8b4gzJInrbi9w+LkH+/gw184 IBqUObiyhdra049CBKHIM/DUmPgZ84/227Ln+1VClMPYFCWDgTXSiyZXNJG78vK6+2Tq UxCJDz77YJiQZ1BDkOqh7uriL8lclQ3U+aMoWFawPjUDvSfym1+EPmhjmUZLIgVqW65c MB7rSFWXXlN/FOYjsMPzkLNY1LHfwfyGipvCrzurIUaU4LpuHl1mjd2GtlyQ4Lh0LITC 4hHw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=kyP8YtTFMbDNG7qsSo2w5pZq5BUurmqPvqGOvI+33I4=; b=0eePp8peHpJVVmlnQnxVdsq7CLNbhRSIjUsXPsRSCrSK74qEvtNIWoxyYxTjMdSNVW mI+crQ03N1ixSBq+qgr1uYUbmujagWIR6eLGWAXH3YEdu9J57Q4YVjiZDzjI3cJ5IwlB tyNw/xnKO9w75QW62C0IHIicP65nYSv0SMjU3ed6jPFLnNnvdB3JzIAT7Cjthp9W9ePJ KjgyZJ5HPO7j77HXJFpi9QCRCznwIvWy2bFEFzt7DeYOPjklxZsfQ3KQ13TMhyMkSs6r KVv4LZ3aIKhxgMd/5Q/OT8h+CZrWmk9MaKmlyqRAf08v4N/lTXN7EwvFpsMdukO6Zkny fXXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rWDWXTP7; 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 n24si3750712pjq.85.2019.08.29.19.25.38; Thu, 29 Aug 2019 19:25:55 -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=rWDWXTP7; 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 S1727522AbfH3CXM (ORCPT + 99 others); Thu, 29 Aug 2019 22:23:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43144 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727344AbfH3CXM (ORCPT ); Thu, 29 Aug 2019 22:23:12 -0400 Received: by mail-pf1-f194.google.com with SMTP id v12so3496405pfn.10; Thu, 29 Aug 2019 19:23:12 -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:mime-version :content-transfer-encoding; bh=kyP8YtTFMbDNG7qsSo2w5pZq5BUurmqPvqGOvI+33I4=; b=rWDWXTP702wCGI624fpXgt3wQTyudNC5ks+AxLmDINU0IG4hpia4jffy04LubJ+6FJ 3J9fzomGghyOAFnNdIHOF92yQes/q9vsDG6AtSF/MYC/5/NC68QPpTardqn+t/tyrxpI 64Ic+KzV2muXl7r97bMzxEH53rWDI9omFh9KAdJp+QBPzhDyDRMLZigFWK6Ux4nrOGln +jpirFjI3lO1Z1hy+s54+fHYuX++TiY7g6IthPlRxKstTiCD7XEsSRP9ilR3O/mE81oR zAcgaDkXM47vtcrkUMlMGeKuDfA5hxP97i/uXSpo/OuBUvySOy2UqQZFEwuTu3NFwizs Y1DQ== 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:mime-version :content-transfer-encoding; bh=kyP8YtTFMbDNG7qsSo2w5pZq5BUurmqPvqGOvI+33I4=; b=gytAb3y4fOVZzvhxhg99ieCDR2B1nKK6kNzC0ywF47hUfSlLM28nQJkRVl5u1GVz4A Ss5+i34Ez/z37k/QUAe3M2+SZH5Iwb/I2uya4VII7iCO6Qjb0i96nyBuRF2mOjqAkKgK CiGTsSSK+qt+1fRXUVQHdje/lqNdifnFznJ+Hk0iPfbmp7qiN0mfbsNl229WmpHEwwW8 4hasCFMLZPYFPBjkprIGGBB99wUKridUm1NC2LEjLSHLH/1DkbKUAQF15s/TGFAv6XKO aZ2HW1mOe/sKwONbmMnGuRTUdb9SQXkTvow2e9/BizwFOeiKR5e1rBZXf5EBH5ThlpHf 0+RA== X-Gm-Message-State: APjAAAV8NRRkPujBzWC0MtE7BNhmahaX3I+CxO8zbPBJVlR47trsLq6+ Vz7PXPHKSCLijA67vp7Z6UA6FQgg X-Received: by 2002:a62:8344:: with SMTP id h65mr15360588pfe.85.1567131791880; Thu, 29 Aug 2019 19:23:11 -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 a11sm3231896pju.2.2019.08.29.19.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 19:23:11 -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 V7 1/5] mmc: sdhci: Change timeout of loop for checking internal clock stable Date: Fri, 30 Aug 2019 10:23:10 +0800 Message-Id: <20190830022310.8299-1-benchuanggli@gmail.com> X-Mailer: git-send-email 2.22.1 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.22.1