Skip to content

Commit 414126f

Browse files
Ernest-Zhangstorulf
authored andcommitted
mmc: sdhci: Remove unneeded quirk2 flag of O2 SD host controller
O2 SD host controller only need set the quirk2 flag SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD when work on force 1.8v emmc mode but not normal mode Signed-off-by: Ernest Zhang <[email protected]> Acked-by: Adrian Hunter <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 7f76e46 commit 414126f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-pci-o2micro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot)
428428
mmc_hostname(host->mmc));
429429
host->flags &= ~SDHCI_SIGNALING_330;
430430
host->flags |= SDHCI_SIGNALING_180;
431+
host->quirks2 |= SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD;
431432
host->mmc->caps2 |= MMC_CAP2_NO_SD;
432433
host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
433434
pci_write_config_dword(chip->pdev,
@@ -677,7 +678,6 @@ static const struct sdhci_ops sdhci_pci_o2_ops = {
677678
const struct sdhci_pci_fixes sdhci_o2 = {
678679
.probe = sdhci_pci_o2_probe,
679680
.quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
680-
.quirks2 = SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD,
681681
.probe_slot = sdhci_pci_o2_probe_slot,
682682
#ifdef CONFIG_PM_SLEEP
683683
.resume = sdhci_pci_o2_resume,

0 commit comments

Comments
 (0)