diff options
| author | Veerabhadrarao Badiganti <vbadigan@codeaurora.org> | 2017-04-04 12:38:24 +0530 |
|---|---|---|
| committer | Veerabhadrarao Badiganti <vbadigan@codeaurora.org> | 2017-04-04 17:00:02 +0530 |
| commit | 26e54a44f6b4fa3b59e6bb404811b975a3d21bb4 (patch) | |
| tree | d4deeae4fedc364d7a77444e8d94d530eb9300cf /include/linux/fpga/fpga-mgr.h | |
| parent | 9af69213de642f19b19f77e04f23de9f66b6b0f0 (diff) | |
mmc: core: Increase the runtime PM reference count in try_claim_host
Runtime PM reference count is being increased in mmc_claim_host() and
is decreased in mmc_release_host(). This reference count is kept
during the complete cycle of a claim -> release host.
Same need to be done even in mmc_try_claim_host() as well. Increase
the runtime PM reference count by invoking pm_runtime_get_sync() from
mmc_try_claim_host() upon first successful claim.
Without this change the runtime PM reference count goes for a toss
since count is not getting incremented in mmc_try_claim_host() but is
getting decremented in mmc_release_host().
Change-Id: I77836875b4700a4bf3dbde2bf1abdf2ad36c4cac
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions
