Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3441625ybl; Mon, 19 Aug 2019 19:08:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcRQboahGlqfiC0SxtmvErHHrID94tCYTI/JapVvHcKNJWzixzO1hHZAofJydabgSELLDD X-Received: by 2002:aa7:9799:: with SMTP id o25mr27518172pfp.74.1566266926862; Mon, 19 Aug 2019 19:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566266926; cv=none; d=google.com; s=arc-20160816; b=xGkXThbo0a9ip7/XrS8IHcfPb4pTWx/SG4wyQQPYZot3IKdDQC8GuDyG/18sXoZUnR Jo2bm6pxzO77zdRDA8f0VXoWXWRo7sQ699l/BwOiQZ7lis1k/8D1g0mwlh5XlXl3WpEp UjUw6KbfSrz5ZNKJfDehpBVJxBnrxKK7N55680ivfr8dbO92gcQ1RUT2VyE7jVYNyJVh pA580Hn6SOwP3aJEzdQreXEHN21xhCd/wj06aCCjfmlHQjAvNpnzRlWqBNT/nDyLhA0U dp0mP83JuYmoezbqBQxp1F+BhFrtN3SNbJL+895/221SkwHEO5vRGZzqnxXk+OV+LOUq /6iA== 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=1o9lF1pZgVHiLgtSbSIAOz8s4TWZAVFJmsuylkZmIys=; b=YVSOefAdLDKBi6LJjI7lY6FzGTMmGq3YLYcgLeiZZrfumdQXze4H/CIpNbjq3sdnh3 Y8ZPQY5UFgG8jfICXNVfwbBjgygPQksKNlmW34s6jFeUGp7CqsjtywyllVUgM1M/IsnC pJsX/om4h0tMr+W2kbt3E0w2yyY5EhAqEw5JDqKk8AFGFj49H7NqTaXM1K/thZpZ+op7 Rmu3XN72DFwDNHpJr3EceTmaBontTJ5i7NPtAMJ+dog9FxpTu0ywVhgUgWhmDhIUOtX5 mnvw3E3bbOs0LDn8meuV/DY3BcU4gqq96DXoxwPHgJZR/gRvlekkDqbIPvoyK94obTkF 6nLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="OC/eQ7/d"; 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 t3si11169109plz.101.2019.08.19.19.08.32; Mon, 19 Aug 2019 19:08:46 -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="OC/eQ7/d"; 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 S1728990AbfHTCGO (ORCPT + 99 others); Mon, 19 Aug 2019 22:06:14 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36236 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728615AbfHTCGN (ORCPT ); Mon, 19 Aug 2019 22:06:13 -0400 Received: by mail-pg1-f194.google.com with SMTP id l21so2258911pgm.3; Mon, 19 Aug 2019 19:06:13 -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=1o9lF1pZgVHiLgtSbSIAOz8s4TWZAVFJmsuylkZmIys=; b=OC/eQ7/dbTmz3BtsWPFojIj5Wf/sTMjmzwg66TGiPcP0AAH8kdRZzff2jaszNT6Pwj 6ohqUXscE/Mw/emlYVQZtwe3BzPDNPqXidoG26mbVci9NfS8ux29dGpRLDV5kOXS1v3Y EUojKDRWeqm0QX8ZveeVoMw4ShXb+Jk1zKBgzbqYGv4G5prbbLYeXnls2+SJxA5bql/0 6HlzcKHcnH5EGKjVHcc0s2aRC0fEttukhfzuteD6nliJ8X/yIfo7vYr1SyPWOqgpjqOA TTjPaRkjqUkS9z88iXTfc+p4ToU/8Gh17S5rUtNUezE1uirAnMBFeSP7xAhghQPoUUge z+Rg== 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=1o9lF1pZgVHiLgtSbSIAOz8s4TWZAVFJmsuylkZmIys=; b=oJYCAKMtkEsO00ehpwSkQ2AF5ThXwWWJy71wTh8g0Brp29Ia22D0eB+wOVTbR2C6nz j2gsGjETkBYp/9FEs29zDsz9IFziy4TPopZ3baK3y9s8Wz1HpkmIpfikQMDBP9EBowBa CIt+/OOX30R2t2sCkVHbEWkhiNRVMurWogMkj3AiI/S7y5E332/exnsjczgjEm/UgCa3 /5eOrCI/IXFfKpNxJj98YIkr33tFHNSJCmnYh6kuWUhFV0QmTXxXPBVFpWa2DDTVECtk YJje0x+T/QdswEoHxwO+jRNX2E7wJ5oVssdjiOBM6uvDxSsb76+w83fPk2gZabRT9Aoq wIQg== X-Gm-Message-State: APjAAAXIaal9QOKCNPgKY8urfFofj0qBNVHuXhQXOg3VoDYuP1dulR5q TEYxNdXPzofLV6bvErwolwA= X-Received: by 2002:a17:90a:bc4b:: with SMTP id t11mr24221494pjv.87.1566266773272; Mon, 19 Aug 2019 19:06:13 -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 b136sm21570693pfb.73.2019.08.19.19.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 19:06:12 -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 V5 1/4] mmc: sdhci: Change timeout of loop for checking internal clock stable Date: Tue, 20 Aug 2019 10:06:25 +0800 Message-Id: <20190820020625.8230-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 --- 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