Skip to content

Commit cdd2b76

Browse files
shirleyher3118storulf
authored andcommitted
mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1
To fix support for the O2 host controller Seabird1, set the quirk SDHCI_QUIRK2_PRESET_VALUE_BROKEN and the capability bit MMC_CAP2_NO_SDIO. Moreover, assign the ->get_cd() callback. Signed-off-by: Shirley Her <[email protected]> Link: https://lore.kernel.org/r/[email protected] [Ulf: Updated the commit message] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 0d776e5 commit cdd2b76

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,12 @@ static int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot)
561561
slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd;
562562
}
563563

564+
if (chip->pdev->device == PCI_DEVICE_ID_O2_SEABIRD1) {
565+
slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd;
566+
host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
567+
host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN;
568+
}
569+
564570
host->mmc_host_ops.execute_tuning = sdhci_o2_execute_tuning;
565571

566572
if (chip->pdev->device != PCI_DEVICE_ID_O2_FUJIN2)

0 commit comments

Comments
 (0)