Skip to content

Commit be32acf

Browse files
Can Guomartinkpetersen
authored andcommitted
scsi: ufs: Don't update urgent bkops level when toggling auto bkops
Urgent bkops level is used to compare against actual bkops status read from UFS device. Urgent bkops level is set during initialization and might be updated in exception event handler during runtime. But it should not be updated to the actual bkops status every time when auto bkops is toggled. Otherwise, if urgent bkops level is updated to 0, auto bkops shall always be kept enabled. Link: https://lore.kernel.org/r/[email protected] Fixes: 24366c2 ("scsi: ufs: Recheck bkops level if bkops is disabled") Reviewed-by: Stanley Chu <[email protected]> Signed-off-by: Can Guo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 89523cb commit be32acf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5123,7 +5123,6 @@ static int ufshcd_bkops_ctrl(struct ufs_hba *hba,
51235123
err = ufshcd_enable_auto_bkops(hba);
51245124
else
51255125
err = ufshcd_disable_auto_bkops(hba);
5126-
hba->urgent_bkops_lvl = curr_status;
51275126
out:
51285127
return err;
51295128
}

0 commit comments

Comments
 (0)