mmc: sdhci-of-at91: fix wake-up issue when using runtime pm
authorludovic.desroches@atmel.com <ludovic.desroches@atmel.com>
Thu, 17 Mar 2016 13:54:34 +0000 (14:54 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 18 Mar 2016 08:12:32 +0000 (09:12 +0100)
commit64e5cd723120643a4c8bef0880a03a60161d3ccb
tree08e8f6ca5d381dc6563b9cd80139134eccf724d8
parentbd9ff18bffcd1861ff0c7dc3fd06d0df2510cc42
mmc: sdhci-of-at91: fix wake-up issue when using runtime pm

It is impossible to wake-up on card detect event because when sdhci
controller is runtime suspended, it is assumed that all clocks are
disabled so we can't get irqs.
If the device is removable and there is no gpio to manage the card
detection then polling is used. It doesn't mean card detection is broken.
It is curently we only way to wake-up on card event if using runtime pm.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c