scsi: ufs: Remove redundant urgent_bkop_lvl initialization
Subsystems (2)
PATCH 1/1 scsi: ufs: Remove redundant urgent_bkop_lvl initialization
In ufshcd_probe_hba(), all BKOP SW tracking variables can be reset together in ufshcd_force_reset_auto_bkops(), thus urgent_bkop_lvl initialization in the beginning of ufshcd_probe_hba() can be merged into ufshcd_force_reset_auto_bkops().
--- drivers/scsi/ufs/ufshcd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/scsi/ufs/ufshcd.c +1 -4
@@ -5076,6 +5076,7 @@ static void ufshcd_force_reset_auto_bkops(struct ufs_hba *hba) hba->ee_ctrl_mask &= ~MASK_EE_URGENT_BKOPS ;ufshcd_disable_auto_bkops (hba); } + hba->urgent_bkops_lvl =BKOPS_STATUS_PERF_IMPACT ; hba->is_urgent_bkops_lvl_checked = false; }
@@ -7373,10 +7374,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba, bool async)if (ret) goto out; -/* set the default level for urgent bkops */ - hba->urgent_bkops_lvl =BKOPS_STATUS_PERF_IMPACT ; - hba->is_urgent_bkops_lvl_checked = false; -/* Debug counters initialization */ ufshcd_clear_dbg_ufs_stats (hba);
Signature · 1 line
2.18.0
Quoted 8 lines
In
ufshcd_probe_hba(), all BKOP SW tracking variables can be reset together inufshcd_force_reset_auto_bkops(), thusurgent_bkop_lvlinitialization in the beginning ofufshcd_probe_hba()can be merged intoufshcd_force_reset_auto_bkops().Signed-off-by Stanley Chu <[email protected]>
Martin K. Petersen
AppliedQuoted 4 lines · Stanley Chu
In
ufshcd_probe_hba(), all BKOP SW tracking variables can be reset together inufshcd_force_reset_auto_bkops(), thusurgent_bkop_lvlinitialization in the beginning ofufshcd_probe_hba()can be merged intoufshcd_force_reset_auto_bkops().
Applied to 5.8/scsi-queue, thanks!
[1/1] scsi: ufs: Remove redundant urgent_bkop_lvl initialization
https://git.kernel.org/mkp/scsi/c/7b6668d8b806
Signature · 6 lines
Martin K. Petersen Oracle Linux Engineering _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel