Skip to content

Commit 7b6668d

Browse files
Stanley Chumartinkpetersen
authored andcommitted
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(). Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Avri Altman <[email protected]> Signed-off-by: Stanley Chu <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent be32acf commit 7b6668d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5076,6 +5076,7 @@ static void ufshcd_force_reset_auto_bkops(struct ufs_hba *hba)
50765076
hba->ee_ctrl_mask &= ~MASK_EE_URGENT_BKOPS;
50775077
ufshcd_disable_auto_bkops(hba);
50785078
}
5079+
hba->urgent_bkops_lvl = BKOPS_STATUS_PERF_IMPACT;
50795080
hba->is_urgent_bkops_lvl_checked = false;
50805081
}
50815082

@@ -7372,10 +7373,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba, bool async)
73727373
if (ret)
73737374
goto out;
73747375

7375-
/* set the default level for urgent bkops */
7376-
hba->urgent_bkops_lvl = BKOPS_STATUS_PERF_IMPACT;
7377-
hba->is_urgent_bkops_lvl_checked = false;
7378-
73797376
/* Debug counters initialization */
73807377
ufshcd_clear_dbg_ufs_stats(hba);
73817378

0 commit comments

Comments
 (0)