mmc: sdhci: Issue sdhci RTPM put() after tuning
rrajk [Thu, 2 May 2013 15:32:44 +0000 (20:32 +0530)]
sdhci RTPM get() is calling before tuning, so corresponding
sdhci RTPM put() should be issued after tuning as well.

Bug 1249832

Change-Id: I47fb448968db7ba889229e51366ace2f60ac1874
Reviewed-on: http://git-master/r/224915
(cherry picked from commit fdb087557256667e4303ae2d0f29b3d2dede1970)

Signed-off-by: rrajk <rrajk@nvidia.com>
Change-Id: Ifa0cc5b98a17177d11f17c6b7ead85ecd611edf8
Reviewed-on: http://git-master/r/228212
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

drivers/mmc/host/sdhci.c

index cf6b7e2..80aa59b 100644 (file)
@@ -1756,6 +1756,7 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
                err = host->ops->execute_freq_tuning(host, opcode);
                spin_unlock(&host->lock);
                enable_irq(host->irq);
+               sdhci_runtime_pm_put(host);
                return err;
        }