Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adam Lee and committed by
Ulf Hansson
143b648d 22d7e85f

+1
+1
drivers/mmc/host/sdhci-pci.c
··· 618 618 static const struct sdhci_pci_fixes sdhci_o2 = { 619 619 .probe = sdhci_pci_o2_probe, 620 620 .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC, 621 + .quirks2 = SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD, 621 622 .probe_slot = sdhci_pci_o2_probe_slot, 622 623 .resume = sdhci_pci_o2_resume, 623 624 };