Skip to contentSkip to conversation

mmc: sdhci-brcmstb: Remove incorrect capability

PATCH In review Jaedon Shin 2 participants 3 messages Aug 29, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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
#1 lore raw
Quoted 14 lines · Jaedon Shin

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 +0 -0
index cce10fe3e19e..683bfc2af512 100644

drivers/mmc/host/sdhci-brcmstb.c static int sdhci_brcmstb_probe(struct platform_device *pdev) · line 101

Quoted 4 lines
drivers/mmc/host/sdhci-brcmstb.c +1 -0
@@ -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))

I thought we agreed on using a specific DT compatible string to distinguish what to do here was better? No?

Quoted 7 lines
drivers/mmc/host/sdhci-brcmstb.c +1 -1
+               host->caps &= ~SDHCI_CAN_64BIT;
        host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
        host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 |
                        SDHCI_SUPPORT_DDR50);
--

2.9.3

Kind regards
Uffe

#2 lore raw

Hi Ulf,

2016. 8. 29., 오후 8:13, Ulf Hansson <[email protected]> 작성:

Quoted 11 lines · Jaedon Shin
Quoted 9 lines

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(+)
Quoted 12 lines

drivers/mmc/host/sdhci-brcmstb.c static int sdhci_brcmstb_probe(struct platform_device *pdev) · line 101

Quoted 9 lines
drivers/mmc/host/sdhci-brcmstb.c +1 -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))

I thought we agreed on using a specific DT compatible string to distinguish what to do here was better? No?

My mistake. please drop this patch.

The v3 patch should have new compatible string “brcm,bcm7445-sdhci”. The BCM7445 is initial and typical 28nm generation ARM SoC. I’ll be send updated patch next day.

Thanks,
Jaedon

Quoted 11 lines
Quoted 8 lines
drivers/mmc/host/sdhci-brcmstb.c +1 -1
+               host->caps &= ~SDHCI_CAN_64BIT;
       host->caps1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
       host->caps1 &= ~(SDHCI_SUPPORT_SDR50 | SDHCI_SUPPORT_SDR104 |
                       SDHCI_SUPPORT_DDR50);
--

2.9.3

Kind regards
Uffe