mmc: sdhci-of-arasan: Add "SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12" quirk.
authorManish Narani <manish.narani@xilinx.com>
Tue, 15 Jun 2021 10:43:52 +0000 (16:13 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Aug 2021 08:15:28 +0000 (10:15 +0200)
Arasan controller supports AUTO CMD12, this patch adds
"SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12" quirk to enable auto cmd12
feature.
By using auto cmd12 we can also avoid following error message
"Got data interrupt even though no data operation in progress"

Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1623753837-21035-3-git-send-email-manish.narani@xilinx.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c

index 03c80c9..e61dbe0 100644 (file)
@@ -1626,6 +1626,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
                        arasan_zynqmp_execute_tuning;
 
                sdhci_arasan->quirks |= SDHCI_ARASAN_QUIRK_CLOCK_25_BROKEN;
+               host->quirks |= SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12;
        }
 
        arasan_dt_parse_clk_phases(dev, &sdhci_arasan->clk_data);