Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/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>

authored by

Kiwoong Kim and committed by
Martin K. Petersen
c99b9b23 ad6c8a42

+2 -1
+2 -1
drivers/scsi/ufs/ufshci.h
··· 142 142 #define INT_FATAL_ERRORS (DEVICE_FATAL_ERROR |\ 143 143 CONTROLLER_FATAL_ERROR |\ 144 144 SYSTEM_BUS_FATAL_ERROR |\ 145 - CRYPTO_ENGINE_FATAL_ERROR) 145 + CRYPTO_ENGINE_FATAL_ERROR |\ 146 + UIC_LINK_LOST) 146 147 147 148 /* HCS - Host Controller Status 30h */ 148 149 #define DEVICE_PRESENT 0x1