]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Keep host claimed while invoking mmc_power_off|up()
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 11 Sep 2015 12:41:55 +0000 (14:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Oct 2015 14:59:52 +0000 (15:59 +0100)
commit7ca39019026b6d579d1a645079dd44d77242d0f4
treeb887a15e7e0660f5ec046550bc31cc63b28e09b4
parent37dff1da42bea1e7b9968fd06dc45fb3c51d86db
mmc: core: Keep host claimed while invoking mmc_power_off|up()

As mmc_claim_host() invokes pm_runtime_get_sync() for the mmc host device,
it's important that the host is kept claimed for *all* accesses to it via
the host_ops callbacks.

In some code paths for SDIO, particularly related to the PM support,
mmc_power_off|up() is invoked without keeping the host claimed. Let's fix
these.

Moreover, mmc_start|stop_host() also invokes mmc_power_off|up() without
claiming the host, let's fix these as well.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/mmc/core/core.c
drivers/mmc/core/sdio.c