Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp409751yba; Wed, 8 May 2019 23:17:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzl8iO+pzt7CiAIgjVKUDQn8plEGBGFykUKkEf5be2CWYMTLmUvjRlAjUZ0pO93SIlnAqjt X-Received: by 2002:a62:5ec2:: with SMTP id s185mr2773967pfb.16.1557382664427; Wed, 08 May 2019 23:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557382664; cv=none; d=google.com; s=arc-20160816; b=Vl9mpTr5V8u2+w5BIXpt6v1xvTni/P+QIMEZqfHf6JhwRLqxLMb84dDgqza1KD5G/h FfBcb/uc+bmIq0hQy20o7SsLAi8o1C1paIfmlYLEyKmpAKBzSqVtX8IHSedyKk4+pvRw OVmzYn8Ddro+B0AGCY4XyanOR2/lBm1oKdw9290nE9AWNi7OCuyZPZyfs89Sht5pJJ71 yGnIz+nQrvmCCZ15V5r/hRdtB6miesQlE+ymOVaWnM3SvLHH1M6ORP54gleyVEWu/+v8 MXE33C5GTiRBHHklNy8lltF7k+4eVUsmDBuIfLuVSjZkQrflaAU2tz6EjeHeQ0dbN7tx ec4A== 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=4KvDTOLYYx+MC2bVuIIpK86nxDDoyMvwL24vtPLje/I=; b=hwIic8tqcdmmY/vnJSMFEQ6ydZMmZ17ELNcLfuFsuWW4XfsdMuTbW8/UF8rTn/LZm3 +340nkAgcALsHn9jfskXpbmug091dhDKQ7l2VbYtdqRVk/467sFYmmPWPao2FbT/YX53 zYA7Y29aVZdQAn4mE7dq3y7I3KiR9ilawRpD7ue2pVO+pNHwbGuBf8hshyUpsb4Wb852 TPb4BOA1PQynAypPBwLAJnFK4vVPKGDskdGIihndnQI2LPA24vw08skvfL3RjopjACfC pUMd12ZD70+9wJx3MGq5XUfqvMXRCc+UNzQIVM3uUtnlDcUsk9775VUudwtICejcH6pX tmKw== 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 i7si1622767pfj.115.2019.05.08.23.17.28; Wed, 08 May 2019 23:17:44 -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 S1726861AbfEIGQR (ORCPT + 99 others); Thu, 9 May 2019 02:16:17 -0400 Received: from mga06.intel.com ([134.134.136.31]:26831 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbfEIGQR (ORCPT ); Thu, 9 May 2019 02:16:17 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2019 23:16:16 -0700 X-ExtLoop1: 1 Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.198]) ([10.237.72.198]) by fmsmga001.fm.intel.com with ESMTP; 08 May 2019 23:16:12 -0700 Subject: Re: [PATCH v2 2/2] mmc: sdhci-iproc: 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 , stable@vger.kernel.org References: <20190508164044.22451-1-scott.branden@broadcom.com> <20190508164044.22451-3-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: Date: Thu, 9 May 2019 09:16:05 +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: <20190508164044.22451-3-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 8/05/19 7:40 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. You should add your stable comments as well i.e. Scott chose this tag (v4.12+) to assist stable kernel maintainers so that the change does not produce merge conflicts backporting to older kernel versions. In reality, the timing bug existed since the driver was first introduced but there is no need for this driver to be supported in kernel versions that old. > > Cc: stable@vger.kernel.org # v4.12+ > 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 9d4071c41c94..2feb4ef32035 100644 > --- a/drivers/mmc/host/sdhci-iproc.c > +++ b/drivers/mmc/host/sdhci-iproc.c > @@ -220,7 +220,8 @@ static const struct sdhci_iproc_data iproc_cygnus_data = { > > static const struct sdhci_pltfm_data sdhci_iproc_pltfm_data = { > .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | > - SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, > + SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 | > + SDHCI_QUIRK_NO_HISPD_BIT, > .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN, > .ops = &sdhci_iproc_ops, > }; >