]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mmc: dw_mmc: Don't allow Runtime PM for SDIO cards"
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Apr 2017 20:41:43 +0000 (22:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:13 +0000 (10:30 +0200)
commita075a84c4c91159a4c5206de09a1e6325de969a4
tree01ec67893f0a3aec705b50484eedf1794178badb
parent66f03c9fea81ee03280ab37259e4f4a23b1f1b94
Revert "mmc: dw_mmc: Don't allow Runtime PM for SDIO cards"

This reverts commit 05e29318f6ce ("mmc: dw_mmc: Don't allow Runtime PM for
SDIO cards")'

As dw_mmc now is capable of preventing runtime PM suspend while SDIO IRQs
are enabled, let's drop the less fine-grained method, which is preventing
runtime PM suspend for all SDIO cards - no matter of whether SDIO IRQs are
being enabled or not.

In this way we don't keep the host runtime PM resumed, unless it's really
needed, thus avoiding to waste power.

Especially when SDIO IRQs is supported via a separate out-of-band IRQ line,
which isn't defined by the SDIO standard, typically the SDIO func driver
doesn't enable SDIO IRQs via sdio_claim_irq(). So, for these cases we can
now allow the dwmmc device to be runtime PM suspended in-between requests.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
drivers/mmc/host/dw_mmc.c