mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci-of-arasan: Add quirk to avoid erroneous msg
@ 2018-02-27 13:55 Phil Edworthy
  2018-02-27 14:08 ` Adrian Hunter
  2018-02-27 14:27 ` Shawn Lin
  0 siblings, 2 replies; 10+ messages in thread
From: Phil Edworthy @ 2018-02-27 13:55 UTC (permalink / raw)
  To: Adrian Hunter
  Cc: Michal Simek, Ulf Hansson, linux-mmc, linux-arm-kernel,
	linux-kernel, linux-renesas-soc, 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"

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)
-- 
2.7.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-03-06  0:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 13:55 [PATCH] mmc: sdhci-of-arasan: Add quirk to avoid erroneous msg 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
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

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®