]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Don't update urgent bkops level when toggling auto bkops
authorCan Guo <cang@codeaurora.org>
Thu, 28 May 2020 02:24:42 +0000 (19:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 3 Jun 2020 01:44:53 +0000 (21:44 -0400)
commit365b46286a5395f5d3a4f7322ec8c1dccdb71418
tree9c765b854aac692dad2b63cacabd19bc888323eb
parent9636643e2080b5e6c8fc16eb9b88915026a4ae81
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/1590632686-17866-1-git-send-email-cang@codeaurora.org
Fixes: 669dbdb0c467 ("scsi: ufs: Recheck bkops level if bkops is disabled")
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c