/* HWAGC disable */
exynos_ufs_set_hwacg_control(ufs, false);
} else {
- //pm_qos_update_request(&ufs->pm_qos_int, 0);
-// pm_qos_update_request(&ufs->pm_qos_fsys0, 0);
+ pm_qos_update_request(&ufs->pm_qos_int, 0);
+ pm_qos_update_request(&ufs->pm_qos_fsys0, 0);
/*
* BG/SQ off
*/
ret = ufs_pre_h8_exit(ufs);
- //pm_qos_update_request(&ufs->pm_qos_int, ufs->pm_qos_int_value);
-// pm_qos_update_request(&ufs->pm_qos_fsys0, ufs->pm_qos_fsys0_value);
+ pm_qos_update_request(&ufs->pm_qos_int, ufs->pm_qos_int_value);
+ pm_qos_update_request(&ufs->pm_qos_fsys0, ufs->pm_qos_fsys0_value);
} else {
/*
{
struct exynos_ufs *ufs = to_exynos_ufs(hba);
- //pm_qos_update_request(&ufs->pm_qos_int, 0);
-// pm_qos_update_request(&ufs->pm_qos_fsys0, 0);
+ pm_qos_update_request(&ufs->pm_qos_int, 0);
+ pm_qos_update_request(&ufs->pm_qos_fsys0, 0);
exynos_ufs_dev_reset_ctrl(ufs, false);
dev->platform_data = ufs;
dev->dma_mask = &exynos_ufs_dma_mask;
-// pm_qos_add_request(&ufs->pm_qos_int, PM_QOS_DEVICE_THROUGHPUT, 0);
-// pm_qos_add_request(&ufs->pm_qos_fsys0, PM_QOS_FSYS0_THROUGHPUT, 0);
+ pm_qos_add_request(&ufs->pm_qos_int, PM_QOS_DEVICE_THROUGHPUT, 0);
+ pm_qos_add_request(&ufs->pm_qos_fsys0, PM_QOS_BUS_THROUGHPUT, 0);
if (ufs->tcxo_ex_ctrl)
spin_lock_init(&fsys0_tcxo_lock);
ufshcd_pltfrm_exit(pdev);
-// pm_qos_remove_request(&ufs->pm_qos_fsys0);
-// pm_qos_remove_request(&ufs->pm_qos_int);
+ pm_qos_remove_request(&ufs->pm_qos_fsys0);
+ pm_qos_remove_request(&ufs->pm_qos_int);
ufs->misc_flags = EXYNOS_UFS_MISC_TOGGLE_LOG;
if (ufshcd_is_shutdown_pm(pm_op))
ufs_shutdown_state = 1;
-// if ((req_dev_pwr_mode != hba->curr_dev_pwr_mode) &&
-// ((ufshcd_is_runtime_pm(pm_op) && !hba->auto_bkops_enabled) ||
-// !ufshcd_is_runtime_pm(pm_op))) {
+ if ((req_dev_pwr_mode != hba->curr_dev_pwr_mode) &&
+ ((ufshcd_is_runtime_pm(pm_op) && !hba->auto_bkops_enabled) ||
+ !ufshcd_is_runtime_pm(pm_op))) {
/* ensure that bkops is disabled */
-// ufshcd_disable_auto_bkops(hba);
-// ret = ufshcd_set_dev_pwr_mode(hba, req_dev_pwr_mode);
-// if (ret)
-// goto enable_gating;
-// }
+ ufshcd_disable_auto_bkops(hba);
+ ret = ufshcd_set_dev_pwr_mode(hba, req_dev_pwr_mode);
+ if (ret)
+ goto enable_gating;
+ }
ret = ufshcd_link_state_transition(hba, req_link_state, 1);
if (ret)
udelay(50);
if (gating_allowed) {
-// if (!ufshcd_is_link_active(hba))
-// ufshcd_setup_clocks(hba, false);
-/// else
-// /* If link is active, device ref_clk can't be switched off */
-/// __ufshcd_setup_clocks(hba, false, true);
+ if (!ufshcd_is_link_active(hba))
+ ufshcd_setup_clocks(hba, false);
+ else
+ /* If link is active, device ref_clk can't be switched off */
+ __ufshcd_setup_clocks(hba, false, true);
}
hba->clk_gating.state = CLKS_OFF;