mmc: sdhci-pci: enable sdhci doesn't support hs200 quirk for AMD sdhci
authorVincent Wan <vincent.wan@amd.com>
Wed, 5 Nov 2014 06:09:28 +0000 (14:09 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:30:45 +0000 (14:30 +0100)
AMD SD controller supports the SDR104 mode, but caps2 can not
be promoted to support hs200 for eMMC.

Signed-off-by: Vincent Wan <vincent.wan@amd.com>
Signed-off-by: Wan Zongshun <mcuos.com@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci.c

index 5a77f188b5032bb2df59ac88dbc9df68c9babebf..c1ecd204c194b1d30d5538cf16b3873783667bbd 100644 (file)
@@ -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;
 }