From 6aa3b33671feb9dbd6ae3af93c71f8cb631dba96 Mon Sep 17 00:00:00 2001 From: Subhash Jadavani Date: Mon, 19 Oct 2015 17:25:22 -0700 Subject: [PATCH] mmc: cmdq_hci: release runtime PM reference after halt/unhalt Currently we are not releasing the runtime PM reference count after halt/unhalt completion which basically keeps the runtime PM state to active forever. Fix this by releasing the PM reference count on completion of halt/unhalt operation. Change-Id: I28a37917b49acde7f5d75bf9a639d0eb67a1c169 Signed-off-by: Subhash Jadavani --- drivers/mmc/host/cmdq_hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/cmdq_hci.c b/drivers/mmc/host/cmdq_hci.c index 4e79db942a04..73a586e72b04 100644 --- a/drivers/mmc/host/cmdq_hci.c +++ b/drivers/mmc/host/cmdq_hci.c @@ -798,7 +798,7 @@ static int cmdq_halt(struct mmc_host *mmc, bool halt) break; } } - return retries ? 0 : -ETIMEDOUT; + ret = retries ? 0 : -ETIMEDOUT; } else { if (cq_host->ops->set_data_timeout) cq_host->ops->set_data_timeout(mmc, 0xf);