platform: msm_shared: Write pwrsave to hc register
Enable power save back if already enabled in vendor spec
register instead of dll config register.
CRs-Fixed: 664637
Change-Id: Ia8e6e5e86855cf0c1639514672bd48b61fe677c0
diff --git a/platform/msm_shared/sdhci_msm.c b/platform/msm_shared/sdhci_msm.c
index e0d2790..81b6538 100644
--- a/platform/msm_shared/sdhci_msm.c
+++ b/platform/msm_shared/sdhci_msm.c
@@ -296,7 +296,7 @@
/* Set the powersave back on */
if (pwr_save)
- REG_WRITE32(host, (REG_READ32(host, SDCC_DLL_CONFIG_REG) | SDCC_DLL_PWR_SAVE_EN), SDCC_VENDOR_SPECIFIC_FUNC);
+ REG_WRITE32(host, (REG_READ32(host, SDCC_VENDOR_SPECIFIC_FUNC) | SDCC_DLL_PWR_SAVE_EN), SDCC_VENDOR_SPECIFIC_FUNC);
return 0;
}