Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4612288yba; Tue, 7 May 2019 23:03:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn9adslI5pDoFxykCEEQEdZFTyMSZLMyPWrUQerRY3yS9qzCXimGhOVHQUmfnWEy2+iiTI X-Received: by 2002:a63:dd58:: with SMTP id g24mr44368457pgj.161.1557295385321; Tue, 07 May 2019 23:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557295385; cv=none; d=google.com; s=arc-20160816; b=or03/fPAguxU5x/zogmylWqPgpOTC7UzrYvzhRxVV/Q3/n+87Llg16VCGS7eR8Lr/M O1N5yWw+9Fj/mnXXGkxcOm8hbpIcd645uLrF3IgujmvjWfhU59R1rkzmFx+6+mxoUmwY +dVaVQFc7vwIoSNFF2xLALGiz7R3Kv2xoC9EDh73gpvQuDiQwXClqUL0LlOFh3IT36EA Oh9gCjsb4y7Uv/F5qUIgktrcotb75XE3B5ZgLOI/vINTuhMDGKbDtlqYjweaudxYZZtz 4P5lD6j4fHPAw13WderlAKQbNVoZ/u8fKqzHFPVN4rDscNlY1hE3bVIjAxGizbsv6OO5 XZHg== 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=0Nw00JC9+hJ1HnNxJl/qQODMOiPqKm4mb+2OOVrFiSs=; b=Dm4Gp2AmsnxawVnOoyrpcTMRgL/csXoBKQCYvsCuZnHybGCigFKoIyvxf1fZV6GXP5 gnrAj912AcNZ3tcAH0w5dLDakDgZSsXUHiQepQrLoBn+sNYZLcJzC4rQo9NBQbd+sKLc GSHzvI+Mws2z/BT2+wVrZFG35yZg5UjEnBusy9YFVTCH/nYwmazUJJuzCblhCsRTzjaN sc5aMRLnpJtLedjagZSy1Rh+H7Vy0W9afR4ipTNwmYBiYuliajjSg5M+2nLq/HBYsaQj 9ldmvjbjEdMBGRIdrGa3LESuhnLpCaF+J4jmkx7tAuEVV83EzgQv3CMyyTBexy+Dpqfl 32SQ== 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 b1si7068779pgj.536.2019.05.07.23.02.48; Tue, 07 May 2019 23:03:05 -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 S1728524AbfEHF4r (ORCPT + 99 others); Wed, 8 May 2019 01:56:47 -0400 Received: from mga01.intel.com ([192.55.52.88]:39643 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbfEHF4q (ORCPT ); Wed, 8 May 2019 01:56:46 -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 fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 May 2019 22:56:46 -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; 07 May 2019 22:56:43 -0700 Subject: Re: [PATCH 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 References: <20190506170115.10840-1-scott.branden@broadcom.com> <20190506170115.10840-3-scott.branden@broadcom.com> <673b3d25-0256-9cd7-c89a-673546e69f3a@intel.com> <293b4f12-c74f-35fe-80d7-fdb25405e499@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: <1c091a34-b678-af8b-fb15-89aca485d3b0@intel.com> Date: Wed, 8 May 2019 08:56:36 +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: <293b4f12-c74f-35fe-80d7-fdb25405e499@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/05/19 1:46 AM, Scott Branden wrote: > Hi Adrian, > > On 2019-05-06 11:31 p.m., Adrian Hunter wrote: >> 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. >>> >>> Fixes: f5f968f2371c ("mmc: sdhci-iproc: suppress spurious interrupt with >>> Multiblock read") >> Is this fixes tag correct, because it doesn't seem related.  Maybe explain >> that in the commit message. > > I chose this tag 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. You don't need to use the Fixes tag for that. You can put it on the Cc line e.g. Cc: stable@vger.kernel.org # v4.12+ > Do you want me to add such to the commit message? Yes please. > >> >>> Signed-off-by: Trac Hoang >>> Signed-off-by: Scott Branden >>> --- >>>   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, >>>   }; >>> >