Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp668985ybe; Fri, 6 Sep 2019 05:39:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxov/ravuxwxD0LSNfIsglnznh+se3M6hKlL1zt/KdK2LUtIOGg+srEb0GjqMKZ3LU0f3dz X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr9862766pjp.15.1567773543350; Fri, 06 Sep 2019 05:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567773543; cv=none; d=google.com; s=arc-20160816; b=VRer3wfSTB0mQ+EkIdc+xPeaRDpdt8b4GENCe0JVVaKRw0mRZFe3XIZYCrNDDoWEB4 JetF43pMLijAAf9QsLyU1+lvSsDNtXV3TEdS+KInX17THjQXVKB2lLBE+fLaIpB249Xx d7BBpdHoTbcSmrl0WjmuOpNbLBCYxmmdcLbHDnFNpS1eBy4nGta+vIyLAoQGisaL6Wx2 h7ejldadwpovqi5syQy9PRIalpLiri8cWltEypNuGZLPAkwbAcoepntJE6jz1c9J4/ID JeC4UW0l/Yb0Cqr1a+1zAIKRBvhCY5WAdYVf4ejO1utYziD1xWIPHETWbYTNdd6ol5gO QjAQ== 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=Kc2CwIAzVm5Dnuyp3malNNnF7s1g8DuG0lF6LwRQRtZdFC5/f0Ny4U3FGcBtP7vr5A 8+i6X3eUAJg3zvAvcnNyQNmwOqESnxU/WrT1jhAhRHW680cIyatXG8zBvs2kpy70OAlo bR3VnSWw5p3z21ihmdiEEctXCz0AS6pYIp0JnoEA2iCLuYTIL+JhdfNjnmATAtTT8Df7 ZIcwN4mjS3l+uSP4YZS3l9z6Qg27Ws2Ph0LDEGNSR/+UduxU99LUQaAjVLJJHMFrlpcE fzjLKETU4s+80uYWz2L66nXORHDhwD/jtgUpXmkJt3ej1HVBvWWx6ZenN9SZsO7R81u3 y4pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UxkPlG2W; 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 a18si1664737pls.93.2019.09.06.05.38.46; Fri, 06 Sep 2019 05:39:03 -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=UxkPlG2W; 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 S2390283AbfIFCaq (ORCPT + 99 others); Thu, 5 Sep 2019 22:30:46 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41685 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbfIFCap (ORCPT ); Thu, 5 Sep 2019 22:30:45 -0400 Received: by mail-pg1-f194.google.com with SMTP id x15so2566129pgg.8; Thu, 05 Sep 2019 19:30:45 -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=UxkPlG2WM83W1pxPHvlBQybqMy/Ip+uOUKj9BojUJh1kRjXsIuycCD4K8m+SMOCESi Lqmz2Zl4X+e97nFYKqNfnryHkvtqRuFRqk0B7LcanYGX7WDdDEboErSzvySOZPIIHEYH nE5tCa99wN6qoo/Oh34Qp++ltMBIphkQNW685B1orE/uChL1YQdnvc+b78vlFbFXDMCs 3ajHZxoGC9Q6XpDVDO7xC3+frmotedXB/gQUrwAVxJA9CHu7QR7NO//nGWUIBaqMIbih q2Ffph6mF7Q1fjljvVquHgc93cH0tL5T5OaUnqsiFFpN+VmNXO1fYuzP+YcYE6H5YUs8 IXDQ== 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=uNgRTLQB6cY3ldN4cdnKa5x8crOGDGQQ4sYGw5qtGJyS5L4GhZqs+IxaR+22fP8ieB 3tYtZ4wDXhlSYwO+Lh5b2aY61kBSy+VIMzOLqfO7YD0fUQc8vaxcl9BK7e+yQmCChOV1 GDhI3GaaLPvT+U00FQ15ga8LYr4Bn0BFQrmRWX1bXi8opFvz4ALy/RG1JDDk0YXAWkrm MGyVWQTNlWvz6kPMbtwasXyEeg0B7mPUWCaaqgJ+UDAahWJGhqnuK9NzIQRsR9tC2LJx FACq/aVj3SGj+FgCyiiQvu+y960XB+UoU4QCx808dGfkvYAQ08Gj9PvcC46LzgcR2qpB YqAA== X-Gm-Message-State: APjAAAXfFD3ecppZBYv1jYnfVZUNhXCL+m4exfPPyXrdtWWNYl8YmYUV 4TjfyUsVvaSw88v11L9LFJ4= X-Received: by 2002:a17:90a:1150:: with SMTP id d16mr7548068pje.2.1567737045194; Thu, 05 Sep 2019 19:30:45 -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 o129sm4228000pfg.1.2019.09.05.19.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 19:30:44 -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 V8 1/5] mmc: sdhci: Change timeout of loop for checking internal clock stable Date: Fri, 6 Sep 2019 10:30:53 +0800 Message-Id: <0c090d866e2b4cd7966672b1b6cf5667a5ce39dd.1567734321.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