mmc: bcm2835_sdhci: set SDHCI_QUIRK_BROKEN_SDMA flag 65/268165/2
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 20 Jan 2020 09:50:45 +0000 (18:50 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 16 Dec 2021 16:18:05 +0000 (17:18 +0100)
RPI4 is used device-tree that taken from firmware.
mmcnr@73e00000 is enabled on device-tree, so it's probed on u-boot side.
Because it's for SDIO interface, it doesn't need to probe.
When SDMA is enabled, mmcnr's probe is always failed.

Below log is unnecessary :
  sdhci_setup_cfg: Your controller doesn't support SDMA!!
  mmcnr@7e30000 - probe failed: -22

Change-Id: Icb1cbebf9172d8bf6d14bd167e28eb3d570a21cd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/bcm2835_sdhci.c

index 853bca3..3409a68 100644 (file)
@@ -210,7 +210,8 @@ static int bcm2835_sdhci_probe(struct udevice *dev)
        host->name = dev->name;
        host->ioaddr = (void *)(uintptr_t)base;
        host->quirks = SDHCI_QUIRK_BROKEN_VOLTAGE | SDHCI_QUIRK_BROKEN_R1B |
-               SDHCI_QUIRK_WAIT_SEND_CMD | SDHCI_QUIRK_NO_HISPD_BIT;
+               SDHCI_QUIRK_WAIT_SEND_CMD | SDHCI_QUIRK_NO_HISPD_BIT |
+               SDHCI_QUIRK_BROKEN_SDMA;
        host->max_clk = emmc_freq;
        host->voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
        host->ops = &bcm2835_ops;