]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
ufs: tegra: Enable UFS RTPM suspend/resume call backs.
authorNaveen Kumar Arepalli <naveenk@nvidia.com>
Tue, 2 Aug 2016 13:12:32 +0000 (18:42 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 20 Dec 2016 12:36:19 +0000 (04:36 -0800)
-Enable UFS RTPM suspend/resume call backs.
-Set ufs rpm level to UFS_PM_LVL_1.
-UFS_PM_LVL_1: UFS_ACTIVE_PWR_MODE, UIC_LINK_HIBERN8_STATE.

Bug 200222004

Change-Id: Ib843f467c77ac558a25e5367f4956d59eb6547cf
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1273812
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/scsi/ufs/ufs-tegra.c

index 54c6852cc60ede4010f850567683dd746d9af83f..cc0699d6a5f2a9c6e8b28844128c570f1b8bc31f 100644 (file)
@@ -1132,6 +1132,7 @@ static int ufs_tegra_init(struct ufs_hba *hba)
        ufs_tegra_config_soc_data(ufs_tegra);
        ufs_tegra->nvquirks |= NVQUIRK_BROKEN_HIBERN8_ENTRY;
        hba->spm_lvl = UFS_PM_LVL_3;
+       hba->rpm_lvl = UFS_PM_LVL_1;
        hba->caps |= UFSHCD_CAP_INTR_AGGR;
 
        ufs_tegra->ufs_padctrl = devm_padctrl_get(dev, "ufs");
@@ -1277,11 +1278,9 @@ static const struct of_device_id ufs_tegra_of_match[] = {
 static const struct dev_pm_ops ufs_tegra_pm_ops = {
        .suspend        = ufshcd_pltfrm_suspend,
        .resume         = ufshcd_pltfrm_resume,
-#ifdef CONFIG_SCSI_UFSHCD_PLATFORM_PM
        .runtime_suspend = ufshcd_pltfrm_runtime_suspend,
        .runtime_resume  = ufshcd_pltfrm_runtime_resume,
        .runtime_idle    = ufshcd_pltfrm_runtime_idle,
-#endif
 };
 
 static struct platform_driver ufs_tegra_platform = {