Skip to content

Commit c99b9b2

Browse files
Kiwoong Kimmartinkpetersen
authored andcommitted
scsi: ufs: Treat link loss as fatal error
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/[email protected] Signed-off-by: Kiwoong Kim <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent ad6c8a4 commit c99b9b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/scsi/ufs/ufshci.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ static inline u32 ufshci_version(u32 major, u32 minor)
142142
#define INT_FATAL_ERRORS (DEVICE_FATAL_ERROR |\
143143
CONTROLLER_FATAL_ERROR |\
144144
SYSTEM_BUS_FATAL_ERROR |\
145-
CRYPTO_ENGINE_FATAL_ERROR)
145+
CRYPTO_ENGINE_FATAL_ERROR |\
146+
UIC_LINK_LOST)
146147

147148
/* HCS - Host Controller Status 30h */
148149
#define DEVICE_PRESENT 0x1

0 commit comments

Comments
 (0)