Skip to contentSkip to conversation

mmc: sdhci-brcmstb: Remove incorrect capability

PATCH Superseded Jaedon Shin 1 participant 1 message Aug 19, 2016

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci-brcmstb: Remove incorrect capability

Removes incorrect 64-bit ADMA capability on Broadcom MIPS based SoCs. The MIPS based BRCMSTB SDHCI host controllers are using ADMA only, but the several chipsets have a incorrect capability about ADMA 64-bit.

---
 drivers/mmc/host/sdhci-brcmstb.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mmc/host/sdhci-brcmstb.c +2 -0
index cce10fe3e19e..683bfc2af512 100644
@@ -98,6 +98,8 @@ static int sdhci_brcmstb_probe(struct platform_device *pdev)
 	 * properties through mmc_of_parse().
 	 */
 	host->caps = sdhci_readl(host, SDHCI_CAPABILITIES);
+	if (IS_ENABLED(CONFIG_MIPS))
+		host->caps &= ~SDHCI_CAN_64BIT;
 	host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
 	host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 |
 			SDHCI_SUPPORT_DDR50);
Signature · 1 line
2.9.3