Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-brcmstb: Fix incorrect capability

Clear incorrect SDHCI_CAN_64BIT capability on Broadcom MIPS based SoCs.
The MIPS based SoCs are using ADMA only, but the several SoCs have the
incorrect capability bit about ADMA 64-bit. The "brcm,bcm7425-sdhci" is
compatible string for MIPS based SoC.

Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Jaedon Shin and committed by
Ulf Hansson
6a3d8ced 5a3ab281

+3
+3
drivers/mmc/host/sdhci-brcmstb.c
··· 98 98 * properties through mmc_of_parse(). 99 99 */ 100 100 host->caps = sdhci_readl(host, SDHCI_CAPABILITIES); 101 + if (of_device_is_compatible(pdev->dev.of_node, "brcm,bcm7425-sdhci")) 102 + host->caps &= ~SDHCI_CAN_64BIT; 101 103 host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1); 102 104 host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 | 103 105 SDHCI_SUPPORT_DDR50); ··· 123 121 124 122 static const struct of_device_id sdhci_brcm_of_match[] = { 125 123 { .compatible = "brcm,bcm7425-sdhci" }, 124 + { .compatible = "brcm,bcm7445-sdhci" }, 126 125 {}, 127 126 }; 128 127 MODULE_DEVICE_TABLE(of, sdhci_brcm_of_match);