From: Shawn Lin <shawn.lin@rock-chips.com>
To: Phil Edworthy <phil.edworthy@renesas.com>
Cc: shawn.lin@rock-chips.com, Adrian Hunter <adrian.hunter@intel.com>,
Michal Simek <michal.simek@xilinx.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH] mmc: sdhci-of-arasan: Add quirk to avoid erroneous msg
Date: Tue, 27 Feb 2018 22:42:03 +0800 [thread overview]
Message-ID: <b725dcf5-2f53-dab7-1e0c-85ea138f54a9@rock-chips.com> (raw)
In-Reply-To: <HK2PR0601MB1393B39958A128DCB8CA0E44F5C00@HK2PR0601MB1393.apcprd06.prod.outlook.com>
On 2018/2/27 22:31, Phil Edworthy wrote:
> Hi Shawn,
>
> 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. :)
>
> 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 <phil.edworthy@renesas.com>
>>> ---
>>> 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
next prev parent reply other threads:[~2018-02-27 14:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 13:55 Phil Edworthy
2018-02-27 14:08 ` Adrian Hunter
2018-02-27 14:14 ` Phil Edworthy
2018-02-27 14:27 ` Shawn Lin
2018-02-27 14:31 ` Phil Edworthy
2018-02-27 14:42 ` Shawn Lin [this message]
2018-02-27 15:05 ` Phil Edworthy
2018-02-28 1:53 ` Shawn Lin
2018-03-05 16:47 ` Phil Edworthy
2018-03-06 0:55 ` Shawn Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b725dcf5-2f53-dab7-1e0c-85ea138f54a9@rock-chips.com \
--to=shawn.lin@rock-chips.com \
--cc=adrian.hunter@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=phil.edworthy@renesas.com \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®