diff options
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/fsl_esdhc.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index e3cd0c777..f79f167a7 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -500,6 +500,10 @@ static int esdhc_getcd(struct mmc *mmc)  	struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base;  	int timeout = 1000; +#ifdef CONFIG_ESDHC_DETECT_QUIRK +	if (CONFIG_ESDHC_DETECT_QUIRK) +		return 1; +#endif  	while (!(esdhc_read32(®s->prsstat) & PRSSTAT_CINS) && --timeout)  		udelay(1000); |