Skip to contentSkip to conversation

mmc:sdhci-pci: enable sdhci doesn't support hs200 quirk for AMD sdhci

PATCH Applied Vincent Wan 2 participants 2 messages Nov 5, 2014

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

PATCH v3 3/3 mmc:sdhci-pci: enable sdhci doesn't support hs200 quirk for AMD sdhci

AMD SD controller supports the SDR104 mode, but caps2 can not be promoted to support hs200 for eMMC.

---
 drivers/mmc/host/sdhci-pci.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mmc/host/sdhci-pci.c +3 -1
index 5a77f18..c1ecd20 100644
@@ -652,8 +652,10 @@ static int amd_probe(struct sdhci_pci_chip *chip)
 	smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD,
 			PCI_DEVICE_ID_AMD_HUDSON2_SMBUS, NULL);
 
-	if (smbus_dev && (smbus_dev->revision < 0x51))
+	if (smbus_dev && (smbus_dev->revision < 0x51)) {
 		chip->quirks2 |= SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD;
+		chip->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200;
+	}
 
 	return 0;
 }
Signature · 1 line
1.8.1.2
Applied
#1 lore raw
Quoted 5 lines · Vincent Wan

AMD SD controller supports the SDR104 mode, but caps2 can not be promoted to support hs200 for eMMC.

Thanks! Applied for next.

Kind regards
Uffe

Quoted 23 lines
---
 drivers/mmc/host/sdhci-pci.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mmc/host/sdhci-pci.c +3 -2
index 5a77f18..c1ecd20 100644
@@ -652,8 +652,10 @@ static int amd_probe(struct sdhci_pci_chip *chip)
        smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD,
                        PCI_DEVICE_ID_AMD_HUDSON2_SMBUS, NULL);
 
-       if (smbus_dev && (smbus_dev->revision < 0x51))
+       if (smbus_dev && (smbus_dev->revision < 0x51)) {
                chip->quirks2 |= SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD;
+               chip->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200;
+       }
 
        return 0;
 }
--

1.8.1.2