|
@@ -2062,6 +2062,10 @@ static void sdhci_card_event(struct mmc_host *mmc)
|
|
|
struct sdhci_host *host = mmc_priv(mmc);
|
|
|
unsigned long flags;
|
|
|
|
|
|
+ /* First check if client has provided their own card event */
|
|
|
+ if (host->ops->card_event)
|
|
|
+ host->ops->card_event(host);
|
|
|
+
|
|
|
spin_lock_irqsave(&host->lock, flags);
|
|
|
|
|
|
/* Check host->mrq first in case we are runtime suspended */
|