linux-stable/drivers/scsi/ufs
Stanley Chu c6d91bd3fa scsi: ufs: skip shutdown if hba is not powered
[ Upstream commit f51913eef2 ]

In some cases, hba may go through shutdown flow without successful
initialization and then make system hang.

For example, if ufshcd_change_power_mode() gets error and leads to
ufshcd_hba_exit() to release resources of the host, future shutdown flow
may hang the system since the host register will be accessed in unpowered
state.

To solve this issue, simply add checking to skip shutdown for above kind of
situation.

Link: https://lore.kernel.org/r/1568780438-28753-1-git-send-email-stanley.chu@mediatek.com
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Acked-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-29 09:19:29 +01:00
..
Kconfig scsi: ufs: add Hisilicon ufs driver code 2018-07-19 21:57:39 -04:00
Makefile scsi: ufs: add Hisilicon ufs driver code 2018-07-19 21:57:39 -04:00
tc-dwc-g210-pci.c
tc-dwc-g210-pltfrm.c
tc-dwc-g210.c
tc-dwc-g210.h
ufs-hisi.c scsi: ufs: fix a missing check of devm_reset_control_get 2019-05-31 06:46:32 -07:00
ufs-hisi.h scsi: ufs: add Hisilicon ufs driver code 2018-07-19 21:57:39 -04:00
ufs-qcom.c scsi: ufs: ufshcd_dump_regs to use memcpy_fromio 2018-06-19 22:02:25 -04:00
ufs-qcom.h
ufs-sysfs.c
ufs-sysfs.h
ufs.h scsi: ufs: Fix geometry descriptor size 2019-02-27 10:08:55 +01:00
ufs_quirks.h scsi: ufs: Fix hynix ufs bug with quirk on hi36xx SoC 2018-12-13 09:16:10 +01:00
ufshcd-dwc.c
ufshcd-dwc.h
ufshcd-pci.c
ufshcd-pltfrm.c scsi: ufs: Avoid runtime suspend possibly being blocked forever 2019-06-25 11:35:53 +08:00
ufshcd-pltfrm.h
ufshcd.c scsi: ufs: skip shutdown if hba is not powered 2019-10-29 09:19:29 +01:00
ufshcd.h scsi: ufs: ufshcd_dump_regs to use memcpy_fromio 2018-06-19 22:02:25 -04:00
ufshci-dwc.h
ufshci.h
unipro.h scsi: ufs: Fix RX_TERMINATION_FORCE_ENABLE define value 2019-09-06 10:22:02 +02:00