]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Recheck bkops level if bkops is disabled
authorAsutosh Das <asutoshd@codeaurora.org>
Tue, 26 Nov 2019 06:53:30 +0000 (22:53 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Dec 2019 03:08:52 +0000 (22:08 -0500)
commitf72aa37cd1db6513b415434f0d8186825cc06e8f
tree2a61c238f324e9f2d563da8958846f27c0afc56d
parent678df27bae24ed3aafdb841ef527fe141618a9c6
scsi: ufs: Recheck bkops level if bkops is disabled

bkops level should be rechecked upon receiving an exception.  Currently the
level is being cached and never updated.

Update bkops each time the level is checked.  Also do not use the cached
bkops level value if it is disabled and then enabled.

Fixes: 6044836b5b53 (scsi: ufs: handle non spec compliant bkops behaviour by device)
Link: https://lore.kernel.org/r/1574751214-8321-2-git-send-email-cang@qti.qualcomm.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c