Merge "scsi: ufs: fix issue with scaling up gear"
This commit is contained in:
commit
d7eb0a4d7f
1 changed files with 4 additions and 3 deletions
|
@ -9238,10 +9238,11 @@ static int ufshcd_scale_gear(struct ufs_hba *hba, bool scale_up)
|
||||||
/* scale up to G3 now */
|
/* scale up to G3 now */
|
||||||
new_pwr_info.gear_tx = UFS_HS_G3;
|
new_pwr_info.gear_tx = UFS_HS_G3;
|
||||||
new_pwr_info.gear_rx = UFS_HS_G3;
|
new_pwr_info.gear_rx = UFS_HS_G3;
|
||||||
ret = ufshcd_change_power_mode(hba, &new_pwr_info);
|
/* now, fall through to set the HS-G3 */
|
||||||
if (ret)
|
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
|
ret = ufshcd_change_power_mode(hba, &new_pwr_info);
|
||||||
|
if (ret)
|
||||||
|
goto out;
|
||||||
} else {
|
} else {
|
||||||
memcpy(&new_pwr_info, &hba->pwr_info,
|
memcpy(&new_pwr_info, &hba->pwr_info,
|
||||||
sizeof(struct ufs_pa_layer_attr));
|
sizeof(struct ufs_pa_layer_attr));
|
||||||
|
|
Loading…
Add table
Reference in a new issue