Received: by 10.223.185.116 with SMTP id b49csp3222943wrg; Mon, 5 Mar 2018 16:57:02 -0800 (PST) X-Google-Smtp-Source: AG47ELuurNq1WZRU0mdA7NZnIoYudVJ7QyspBwHXb+C60Dbs/RfbHvsZNLKdwAJsc6zxB/XctKGC X-Received: by 10.99.170.5 with SMTP id e5mr13123147pgf.92.1520297822670; Mon, 05 Mar 2018 16:57:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520297822; cv=none; d=google.com; s=arc-20160816; b=S7RZMUJWH/SwahOawc/CHVlrj0g6Fr59r4kX2U/cWMAtSOrkMxLZCfpQlws4T7eR50 /hbQqGPWvITfD0ugsyVb8vMY7krTo01Wy0B4XlTlYmMhP0SpSSvXZGIORLKtMTLbZHpQ Y/RLoMWlTvS6o7b5EAlLJklvbyyavS8/udLY66KkynYEBlkXAd38Ri8Nbup1EqJhou2J LvdwLMkzJB0sLpn1tw9m3YiIZ4Wq01M882WXe07t8Kuc/eASlIkJL5nNMsGkIPJzKrYb tziSJlVIDTz3lAwiqvdIQNw5mzATx6KdHq8zqbL+d/fwBhbXHuharvgnjVWW4Ts4bxBS d3lA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :cc:arc-authentication-results; bh=Xk4e4JG/jFhbyWH/1Mi/7Y/5ATCLwoVgvoZ9+17MtCQ=; b=B2OkA4usd26Gu+qgqDDsdhGmq1o1g9hWZaaF+obl8kfZvKRNlXr4LFbYjTOJCHO/lz /N4xuJf81xihdV7rBFmfz1B8K987VmRoeJlu0gcY0aU0s5+E2FDAImPT85SMK1xRJ4pD kwyLr2PQo1V/JoEbvj7t2pJs1T5wXsKXFsXEp5CGT8Kj+dNvbhnaTcb3OqfbgMQyKuK7 jhSFsWWTSN8ccc17N7U60OaaOWWEQInDbcGNQ6rXR0h5I8NE0gykLoAy0qL6EW/Uw381 pGVd6k5Wwfmoa23yLCwDo7/C7O4FVrBThkHRjmHnlLgLOAPWPsiv5K8N/zoaV5Ukyq8v sUKA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si8977468pgr.85.2018.03.05.16.56.48; Mon, 05 Mar 2018 16:57:02 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932395AbeCFAzh (ORCPT + 99 others); Mon, 5 Mar 2018 19:55:37 -0500 Received: from lucky1.263xmail.com ([211.157.147.130]:49435 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751893AbeCFAzf (ORCPT ); Mon, 5 Mar 2018 19:55:35 -0500 Received: from shawn.lin?rock-chips.com (unknown [192.168.167.83]) by lucky1.263xmail.com (Postfix) with ESMTP id C633F1F5A90; Tue, 6 Mar 2018 08:55:28 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from [172.16.12.51] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 379C4360; Tue, 6 Mar 2018 08:55:27 +0800 (CST) X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: linux-renesas-soc@vger.kernel.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: lintao@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.12.51] (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 262115GZZC; Tue, 06 Mar 2018 08:55:28 +0800 (CST) Cc: shawn.lin@rock-chips.com, Adrian Hunter , Michal Simek , Ulf Hansson , "linux-mmc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" Subject: Re: [PATCH] mmc: sdhci-of-arasan: Add quirk to avoid erroneous msg To: Phil Edworthy References: <1519739731-27920-1-git-send-email-phil.edworthy@renesas.com> <52191012-300a-e13d-fa54-8717eb97c2e1@rock-chips.com> From: Shawn Lin Message-ID: <755a8dc5-cbda-8a99-d106-8269b390de6d@rock-chips.com> Date: Tue, 6 Mar 2018 08:55:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-2022-jp; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/3/6 0:47, Phil Edworthy wrote: > Hi Shawn, > > On 28 February 2018 01:53, Shawn Lin wrote: >> On 2018/2/27 23:05, Phil Edworthy wrote: >>> On 27 February 2018 14:42, Shawn Lin wrote: >>>> On 2018/2/27 22:31, Phil Edworthy wrote: >>>>> On 27 February 2018 14:28, Shawn Lin wrote: >>>>>> 在 2018/2/27 21:55, Phil Edworthy 写道: >>>>>>> Since the controller does not support the end-of-busy IRQ, don't use >> it. >>>>>>> Otherwise, on older SD cards you will get lots of these messages: >>>>>>> "mmc0: Got data interrupt 0x00000002 even though no data operation >>>>>>> was >>>>>> in progress" >>>>>>> >>>>>> >>>>>> I'm afraid you have to explain which version of arasan's IP suffer >>>>>> from this and what does the "older SD cards" mean? >>>>> Ok, I'll try to find out the IP version... >>>>> For "older SD cards", I can provide a list of a few cards that >>>>> exhibit this problem and others that don't, is that enough info? >>>> >>>> What I meant is could you elaborate more about what kind of cards, >>>> e.g, are them the legacy SDSC cards or SDHC cards, or maybe they are >>>> only running with defaut speed? or whatever, but not just with a >>>> vague "older" cards. :) >>> Unfortunately, I have one SDHC card that works, one that doesn't. Both >>> cards are running with a 50MHz SD clock. All I know is this: >> >> Thanks for sharing these, though it looks wired as I never remember I saw >> this problem when extensively tested SD cards on one of arasan controllers >> in 2014. > Not sure what you mean by 'wired'? > > Note that this is on a relatively slow device, a dual core Cortex A7 @500MHz. > Maybe that has some effect. That's why I hope you could add the IP version in your commit msg, and that would be a hint for why it behaved different over platforms. > > It's also interesting that someone posted the same fix for Xilinx a while > back, I linked to it in the commit msg. > > Thanks > Phil > > >>> SD cards that report unexpected interrupts: >>> 2GB Sandisk Extreme III (e624 SD02G 1.89 GiB) >>> 8GB Sandisk (SDHC class 4) (aaaa SU08G 7.40 GiB) >>> 8GB Sandisk Extreme III (SDHC class 6) (bb4e SD08G 7.61 GiB) >>> >>> SD cards that work ok: >>> 16GB Samsung (microSDHC U1 class 10) (0001 00000 14.6 GiB) >>> 16GB Sandisk Ultra (microSDHC U1 class 10) (aaaa SL16G 14.8 GiB) >>> 32GB Sandisk Ultra (microSDHC U1 class 10) (aaaa SL32G 29.7 GiB) >>> >>> Thanks >>> Phil >>> >>>>>>> This has been reported on Xilinx devices that also use the Arasan IP. >>>>>>> See https://patchwork.kernel.org/patch/8062871/ >>>>>>> >>>>>>> This has been tested on the Renesas RZ/ND-DB board with the RZ/N1 >>>> SoC. >>>>>>> >>>>>>> Signed-off-by: Phil Edworthy >>>>>>> --- >>>>>>> drivers/mmc/host/sdhci-of-arasan.c | 3 ++- >>>>>>> 1 file changed, 2 insertions(+), 1 deletion(-) >>>>>>> >>>>>>> diff --git a/drivers/mmc/host/sdhci-of-arasan.c >>>>>>> b/drivers/mmc/host/sdhci-of-arasan.c >>>>>>> index c33a5f7..ab66e32 100644 >>>>>>> --- a/drivers/mmc/host/sdhci-of-arasan.c >>>>>>> +++ b/drivers/mmc/host/sdhci-of-arasan.c >>>>>>> @@ -290,7 +290,8 @@ static const struct sdhci_pltfm_data >>>>>> sdhci_arasan_pdata = { >>>>>>> .ops = &sdhci_arasan_ops, >>>>>>> .quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, >>>>>>> .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN | >>>>>>> - SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN, >>>>>>> + SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN >> | >>>>>>> + SDHCI_QUIRK2_STOP_WITH_TC, >>>>>>> }; >>>>>>> >>>>>>> static u32 sdhci_arasan_cqhci_irq(struct sdhci_host *host, u32 >>>>>>> intmask) >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards >>>>>> Shawn Lin >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> Shawn Lin >>> >>> >>> >>> > > > >