Loading drivers/scsi/ufs/ufshcd.c +2 −2 Original line number Diff line number Diff line Loading @@ -5292,7 +5292,7 @@ static void ufshcd_vreg_set_lpm(struct ufs_hba *hba) * Ignore the error returned by ufshcd_toggle_vreg() as device is anyway * in low power state which would save some power. */ if (ufshcd_is_ufs_dev_poweroff(hba) && if (ufshcd_is_ufs_dev_poweroff(hba) && ufshcd_is_link_off(hba) && !hba->dev_info.is_lu_power_on_wp) { ufshcd_setup_vreg(hba, false); } else if (!ufshcd_is_ufs_dev_active(hba)) { Loading @@ -5308,7 +5308,7 @@ static int ufshcd_vreg_set_hpm(struct ufs_hba *hba) { int ret = 0; if (ufshcd_is_ufs_dev_poweroff(hba) && if (ufshcd_is_ufs_dev_poweroff(hba) && ufshcd_is_link_off(hba) && !hba->dev_info.is_lu_power_on_wp) { ret = ufshcd_setup_vreg(hba, true); } else if (!ufshcd_is_ufs_dev_active(hba)) { Loading Loading
drivers/scsi/ufs/ufshcd.c +2 −2 Original line number Diff line number Diff line Loading @@ -5292,7 +5292,7 @@ static void ufshcd_vreg_set_lpm(struct ufs_hba *hba) * Ignore the error returned by ufshcd_toggle_vreg() as device is anyway * in low power state which would save some power. */ if (ufshcd_is_ufs_dev_poweroff(hba) && if (ufshcd_is_ufs_dev_poweroff(hba) && ufshcd_is_link_off(hba) && !hba->dev_info.is_lu_power_on_wp) { ufshcd_setup_vreg(hba, false); } else if (!ufshcd_is_ufs_dev_active(hba)) { Loading @@ -5308,7 +5308,7 @@ static int ufshcd_vreg_set_hpm(struct ufs_hba *hba) { int ret = 0; if (ufshcd_is_ufs_dev_poweroff(hba) && if (ufshcd_is_ufs_dev_poweroff(hba) && ufshcd_is_link_off(hba) && !hba->dev_info.is_lu_power_on_wp) { ret = ufshcd_setup_vreg(hba, true); } else if (!ufshcd_is_ufs_dev_active(hba)) { Loading