|
@@ -1302,7 +1302,8 @@ static int dw_mci_get_cd(struct mmc_host *mmc)
|
|
int gpio_cd = mmc_gpio_get_cd(mmc);
|
|
int gpio_cd = mmc_gpio_get_cd(mmc);
|
|
|
|
|
|
/* Use platform get_cd function, else try onboard card detect */
|
|
/* Use platform get_cd function, else try onboard card detect */
|
|
- if (brd->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION)
|
|
|
|
|
|
+ if ((brd->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION) ||
|
|
|
|
+ (mmc->caps & MMC_CAP_NONREMOVABLE))
|
|
present = 1;
|
|
present = 1;
|
|
else if (!IS_ERR_VALUE(gpio_cd))
|
|
else if (!IS_ERR_VALUE(gpio_cd))
|
|
present = gpio_cd;
|
|
present = gpio_cd;
|