summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Lee <adam.lee@canonical.com>2015-08-03 14:33:28 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2015-08-27 14:50:48 +0200
commit143b648ddf1583905fa15d32be27a31442fc7933 (patch)
tree29b3f11197bbebdbc501aa04da7c680671433714
parent22d7e85ff8e5826845e9a4fa34b4723e5a97ee9b (diff)
downloadop-kernel-dev-143b648ddf1583905fa15d32be27a31442fc7933.zip
op-kernel-dev-143b648ddf1583905fa15d32be27a31442fc7933.tar.gz
mmc: sdhci-pci: set the clear transfer mode register quirk for O2Micro
This patch fixes MMC not working issue on O2Micro/BayHub Host, which requires transfer mode register to be cleared when sending no DMA command. Signed-off-by: Peter Guo <peter.guo@bayhubtech.com> Signed-off-by: Adam Lee <adam.lee@canonical.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/sdhci-pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index 94f54d2..b3b0a3e 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -618,6 +618,7 @@ static int jmicron_resume(struct sdhci_pci_chip *chip)
static const struct sdhci_pci_fixes sdhci_o2 = {
.probe = sdhci_pci_o2_probe,
.quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
+ .quirks2 = SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD,
.probe_slot = sdhci_pci_o2_probe_slot,
.resume = sdhci_pci_o2_resume,
};
OpenPOWER on IntegriCloud