|
@@ -1762,8 +1762,13 @@ static struct sdhci_pci_slot *sdhci_pci_probe_slot(
|
|
device_init_wakeup(&pdev->dev, true);
|
|
device_init_wakeup(&pdev->dev, true);
|
|
|
|
|
|
if (slot->cd_idx >= 0) {
|
|
if (slot->cd_idx >= 0) {
|
|
- ret = mmc_gpiod_request_cd(host->mmc, NULL, slot->cd_idx,
|
|
|
|
|
|
+ ret = mmc_gpiod_request_cd(host->mmc, "cd", slot->cd_idx,
|
|
slot->cd_override_level, 0, NULL);
|
|
slot->cd_override_level, 0, NULL);
|
|
|
|
+ if (ret && ret != -EPROBE_DEFER)
|
|
|
|
+ ret = mmc_gpiod_request_cd(host->mmc, NULL,
|
|
|
|
+ slot->cd_idx,
|
|
|
|
+ slot->cd_override_level,
|
|
|
|
+ 0, NULL);
|
|
if (ret == -EPROBE_DEFER)
|
|
if (ret == -EPROBE_DEFER)
|
|
goto remove;
|
|
goto remove;
|
|
|
|
|