]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Keep host claimed in mmc_rescan() while calling host ops
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 5 Nov 2015 15:08:08 +0000 (16:08 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:02 +0000 (11:32 +0100)
commit78748de1e37bb05a51d8a008558e7b9447a5493d
tree5e9ad8d55a843964c00d5e6f672ae9b92a807980
parentba753a757e60a949100bfd18e1108ed1cd6e26e5
mmc: core: Keep host claimed in mmc_rescan() while calling host ops

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 mmc_rescan(), the ->card_event() and the ->get_cd() callback are being
invoked without claiming the host, let's fix this.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c