|
@@ -1179,15 +1179,10 @@ static void omap_hsmmc_detect(struct work_struct *work)
|
|
carddetect = -ENOSYS;
|
|
carddetect = -ENOSYS;
|
|
}
|
|
}
|
|
|
|
|
|
- if (carddetect) {
|
|
|
|
|
|
+ if (carddetect)
|
|
mmc_detect_change(host->mmc, (HZ * 200) / 1000);
|
|
mmc_detect_change(host->mmc, (HZ * 200) / 1000);
|
|
- } else {
|
|
|
|
- mmc_host_enable(host->mmc);
|
|
|
|
- omap_hsmmc_reset_controller_fsm(host, SRD);
|
|
|
|
- mmc_host_lazy_disable(host->mmc);
|
|
|
|
-
|
|
|
|
|
|
+ else
|
|
mmc_detect_change(host->mmc, (HZ * 50) / 1000);
|
|
mmc_detect_change(host->mmc, (HZ * 50) / 1000);
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|