mmc: sdio: Drop powered-on re-init at runtime resume and HW reset
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Jun 2019 21:51:31 +0000 (23:51 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 10 Jul 2019 11:18:56 +0000 (13:18 +0200)
commit7fbbe725378d62c30a076742a60a7e1812a2515a
tree3e86c749bc0d3812520ecee9467d2dd8f95e144d
parentee550947a0d696f7ddfe88b204d4eae7f879b583
mmc: sdio: Drop powered-on re-init at runtime resume and HW reset

To use the so called powered-on re-initialization of an SDIO card, the
power to the card must obviously have stayed on. If not, the initialization
will simply fail.

In the runtime suspend case, the card is always powered off. Hence, let's
drop the support for powered-on re-initialization during runtime resume, as
it doesn't make sense.

Moreover, during a HW reset, the point is to cut the power to the card and
then do fresh re-initialization. Therefore drop the support for powered-on
re-initialization during HW reset.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Fixes: ca8971ca5753 ("mmc: dw_mmc: Prevent runtime PM suspend when SDIO IRQs are enabled")
Tested-by: Douglas Anderson <dianders@chromium.org>
drivers/mmc/core/sdio.c