Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3375623yba; Mon, 6 May 2019 23:34:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcNIgkyqJabag/L/Mee1p/4dMbaAPZD09+QnePQwDqalvdwdr6jxCDjxJFcWSre9VV7Tjf X-Received: by 2002:a17:902:7e04:: with SMTP id b4mr37963114plm.211.1557210855405; Mon, 06 May 2019 23:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557210855; cv=none; d=google.com; s=arc-20160816; b=iQ7A1SRdiXMfnpY4b9ssiBSMNxErFfJeWEYV/iJ53nDeUekxeAAYR2m3tXzmzgftN9 U7RTNwEHrrcZWecdQ+WgFZMyshciuSUojF8vdIdDMASiQTE7hBqT4uf2lWRLp1qzGf4P YxQCjtOGslYbq6UdgZfjWDgfooH5gy9CksYPdnGd2/5B/GzKZunbIu0kpKtkgKc+Xpn7 u8+1Se5wKdwcsiFYD6dGl2c4vdSTEUro60cIiImPv7ANk23z8RxSopKyIK8AAB9/6mEp ILUXTTEIKrEFZ9igGNo9KjgEmVvRrpmiHm8TEQ1p71HRLQMj+BQqX8+xX7qdA+WUv8Ng Wkaw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=wGQpTF3relGXpTPHwHZlNCkJsVYJKv6ilI60ezZGV7U=; b=ML3ir+pXIKrWho06Kj4fzaFJpi847RpebxAHirGY0eR00atmSC+lihE7uoRQSLW0pT 121zJ+jhgyaKS+cldTxC+C7DzNKKqeeSVWSZfAsb0G1o6ZpdygYsWnrti6JQoZ/ehD1y 6EY1iCaf5RXB11TO3cLukRAYqc/sYhvlWZTUt4rFu7c3ukO9ePH6qYfkGuk0/DrTG4QQ Cs/WBsPlZiOFw6AaSnjCKA3FWbF2Wdrk+H9uQ7550cXEAAmbnljttXBPu09jZjOOmbNC lcnUf9C5SNed5DDqTZHQ0S78+1+40K8NeqDIcg+bwgRZIAcT8Zv2AYjZUQ3jX6jcmAlV d8rQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si16947793pgs.119.2019.05.06.23.33.59; Mon, 06 May 2019 23:34:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726505AbfEGGdJ (ORCPT + 99 others); Tue, 7 May 2019 02:33:09 -0400 Received: from mga02.intel.com ([134.134.136.20]:2483 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfEGGdJ (ORCPT ); Tue, 7 May 2019 02:33:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 May 2019 23:33:07 -0700 X-ExtLoop1: 1 Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.198]) ([10.237.72.198]) by fmsmga007.fm.intel.com with ESMTP; 06 May 2019 23:33:05 -0700 Subject: Re: [PATCH 1/2] mmc: sdhci-iproc: cygnus: Set NO_HISPD bit to fix HS50 data hold time problem To: Scott Branden , Ulf Hansson , Ray Jui , Scott Branden , Stefan Wahren Cc: BCM Kernel Feedback , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Trac Hoang References: <20190506170115.10840-1-scott.branden@broadcom.com> <20190506170115.10840-2-scott.branden@broadcom.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <195374db-9a9a-2807-d8be-50ec4e8fedcb@intel.com> Date: Tue, 7 May 2019 09:32:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190506170115.10840-2-scott.branden@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/05/19 8:01 PM, Scott Branden wrote: > From: Trac Hoang > > The iproc host eMMC/SD controller hold time does not meet the > specification in the HS50 mode. This problem can be mitigated > by disabling the HISPD bit; thus forcing the controller output > data to be driven on the falling clock edges rather than the > rising clock edges. > > This change applies only to the Cygnus platform. > > Fixes: c833e92bbb60 ("mmc: sdhci-iproc: support standard byte register accesses") > Signed-off-by: Trac Hoang > Signed-off-by: Scott Branden Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-iproc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c > index 9d12c06c7fd6..9d4071c41c94 100644 > --- a/drivers/mmc/host/sdhci-iproc.c > +++ b/drivers/mmc/host/sdhci-iproc.c > @@ -196,7 +196,8 @@ static const struct sdhci_ops sdhci_iproc_32only_ops = { > }; > > static const struct sdhci_pltfm_data sdhci_iproc_cygnus_pltfm_data = { > - .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, > + .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | > + SDHCI_QUIRK_NO_HISPD_BIT, > .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN | SDHCI_QUIRK2_HOST_OFF_CARD_ON, > .ops = &sdhci_iproc_32only_ops, > }; >