Skip to content

Commit

Permalink
scsi: ufs: core: Enable link lost interrupt
Browse files Browse the repository at this point in the history
commit 6d17a11 upstream.

Link lost is treated as fatal error with commit c99b9b2 ("scsi: ufs:
Treat link loss as fatal error"), but the event isn't registered as
interrupt source. Enable it.

Link: https://lore.kernel.org/r/1659404551-160958-1-git-send-email-kwmad.kim@samsung.com
Fixes: c99b9b2 ("scsi: ufs: Treat link loss as fatal error")
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Kiwoong Kim <kwmad.kim@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kiwoong Kim authored and gregkh committed Aug 31, 2022
1 parent 0761b0e commit a292244
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/ufs/ufshci.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ static inline u32 ufshci_version(u32 major, u32 minor)

#define UFSHCD_UIC_MASK (UIC_COMMAND_COMPL | UFSHCD_UIC_PWR_MASK)

#define UFSHCD_ERROR_MASK (UIC_ERROR |\
DEVICE_FATAL_ERROR |\
CONTROLLER_FATAL_ERROR |\
SYSTEM_BUS_FATAL_ERROR |\
CRYPTO_ENGINE_FATAL_ERROR)
#define UFSHCD_ERROR_MASK (UIC_ERROR | INT_FATAL_ERRORS)

#define INT_FATAL_ERRORS (DEVICE_FATAL_ERROR |\
CONTROLLER_FATAL_ERROR |\
Expand Down

0 comments on commit a292244

Please sign in to comment.