|
@@ -2345,6 +2345,8 @@ Signed-off-by: John Crispin <[email protected]>
|
|
+ else
|
|
+ else
|
|
+ inserted = (status & MSDC_PS_CDSTS) ? 1 : 0;
|
|
+ inserted = (status & MSDC_PS_CDSTS) ? 1 : 0;
|
|
+ }
|
|
+ }
|
|
|
|
++ if (host->mmc->caps & MMC_CAP_NEEDS_POLL)
|
|
|
|
++ inserted = 1;
|
|
+
|
|
+
|
|
+#if 0
|
|
+#if 0
|
|
+ change = host->card_inserted ^ inserted;
|
|
+ change = host->card_inserted ^ inserted;
|
|
@@ -4092,6 +4094,8 @@ Signed-off-by: John Crispin <[email protected]>
|
|
+ present = (sdr_read32(MSDC_PS) & MSDC_PS_CDSTS) ? 0 : 1;
|
|
+ present = (sdr_read32(MSDC_PS) & MSDC_PS_CDSTS) ? 0 : 1;
|
|
+ else
|
|
+ else
|
|
+ present = (sdr_read32(MSDC_PS) & MSDC_PS_CDSTS) ? 1 : 0;
|
|
+ present = (sdr_read32(MSDC_PS) & MSDC_PS_CDSTS) ? 1 : 0;
|
|
|
|
++ if (host->mmc->caps & MMC_CAP_NEEDS_POLL)
|
|
|
|
++ present = 1;
|
|
+ host->card_inserted = present;
|
|
+ host->card_inserted = present;
|
|
+#endif
|
|
+#endif
|
|
+ spin_unlock_irqrestore(&host->lock, flags);
|
|
+ spin_unlock_irqrestore(&host->lock, flags);
|