scsi: ufs: Treat link loss as fatal error
authorKiwoong Kim <kwmad.kim@samsung.com>
Fri, 21 Jan 2022 05:37:55 +0000 (14:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:56:14 +0000 (12:56 +0100)
commit0c8d27c2aae53aee190535db7659f37afc39d846
tree672423b9e269f87a564ca1fab094e2eab9106a4d
parentf0a91d89231052d11e19b0f99a7b7ebdb0f6de4a
scsi: ufs: Treat link loss as fatal error

[ Upstream commit c99b9b2301492b665b6e51ba6c06ec362eddcd10 ]

This event is raised when link is lost as specified in UFSHCI spec and that
means communication is not possible. Thus initializing UFS interface needs
to be done.

Make UFS driver considers Link Lost as fatal in the INT_FATAL_ERRORS
mask. This will trigger a host reset whenever a link lost interrupt occurs.

Link: https://lore.kernel.org/r/1642743475-54275-1-git-send-email-kwmad.kim@samsung.com
Signed-off-by: Kiwoong Kim <kwmad.kim@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ufs/ufshci.h