linux/drivers/scsi/ufs
Asutosh Das 3c9edf5581 scsi: ufs: Recheck bkops level if bkops is disabled
commit 24366c2afb upstream.

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: afdfff59a0 (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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-11 04:35:44 -08:00
..
Kconfig
Makefile
cdns-pltfrm.c scsi: ufs: Disable autohibern8 feature in Cadence UFS 2019-12-21 11:05:03 +01:00
tc-dwc-g210-pci.c
tc-dwc-g210-pltfrm.c
tc-dwc-g210.c
tc-dwc-g210.h
ufs-hisi.c scsi: ufs-hisi: use devm_platform_ioremap_resource() to simplify code 2019-09-07 16:43:05 -04:00
ufs-hisi.h
ufs-mediatek.c
ufs-mediatek.h
ufs-qcom.c
ufs-qcom.h
ufs-sysfs.c scsi: ufs: Fix up auto hibern8 enablement 2020-01-04 19:18:17 +01:00
ufs-sysfs.h
ufs.h
ufs_bsg.c scsi: ufs: Give an unique ID to each ufs-bsg 2020-01-17 19:48:45 +01:00
ufs_bsg.h
ufs_quirks.h
ufshcd-dwc.c
ufshcd-dwc.h
ufshcd-pci.c
ufshcd-pltfrm.c scsi: ufshcd: use devm_platform_ioremap_resource() to simplify code 2019-09-07 16:42:07 -04:00
ufshcd-pltfrm.h
ufshcd.c scsi: ufs: Recheck bkops level if bkops is disabled 2020-02-11 04:35:44 -08:00
ufshcd.h scsi: ufs: Fix up auto hibern8 enablement 2020-01-04 19:18:17 +01:00
ufshci-dwc.h
ufshci.h
unipro.h