Files
linux/drivers
Stanley Chu ff78667af3 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>
2023-05-15 14:49:57 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-15 14:31:19 +09:00
2023-05-15 14:35:08 +09:00
2023-05-15 10:39:04 +09:00
2023-05-15 12:46:28 +09:00
2018-05-25 17:06:35 +02:00
2023-05-15 14:41:08 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 14:29:17 +09:00
2023-05-15 13:00:07 +09:00
2023-05-15 14:47:51 +09:00