Loading drivers/scsi/ufs/ufshcd.c +14 −3 Original line number Diff line number Diff line Loading @@ -10558,10 +10558,21 @@ static int ufshcd_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) ufshcd_wb_buf_flush_disable(hba); if (!ufshcd_is_ufs_dev_active(hba)) { ret = ufshcd_set_dev_pwr_mode(hba, UFS_ACTIVE_PWR_MODE); if (ret) if (ret) { /* * In the case of SSU timeout, err_handler must have * recovered the uic link and dev state to active so * we can proceed after checking the link and * dev state. */ if ((host_byte(ret) == DID_TIME_OUT) && ufshcd_is_ufs_dev_active(hba) && ufshcd_is_link_active(hba)) ret = 0; else goto set_old_link_state; } } if (ufshcd_keep_autobkops_enabled_except_suspend(hba)) ufshcd_enable_auto_bkops(hba); else Loading Loading
drivers/scsi/ufs/ufshcd.c +14 −3 Original line number Diff line number Diff line Loading @@ -10558,10 +10558,21 @@ static int ufshcd_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) ufshcd_wb_buf_flush_disable(hba); if (!ufshcd_is_ufs_dev_active(hba)) { ret = ufshcd_set_dev_pwr_mode(hba, UFS_ACTIVE_PWR_MODE); if (ret) if (ret) { /* * In the case of SSU timeout, err_handler must have * recovered the uic link and dev state to active so * we can proceed after checking the link and * dev state. */ if ((host_byte(ret) == DID_TIME_OUT) && ufshcd_is_ufs_dev_active(hba) && ufshcd_is_link_active(hba)) ret = 0; else goto set_old_link_state; } } if (ufshcd_keep_autobkops_enabled_except_suspend(hba)) ufshcd_enable_auto_bkops(hba); else Loading