Patch "scsi: ufs: Treat link loss as fatal error" has been added to the 5.16-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: ufs: Treat link loss as fatal error

to the 5.16-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-ufs-treat-link-loss-as-fatal-error.patch
and it can be found in the queue-5.16 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 15f3af6ce22157c8b9b5d29327d9ab9bf20aa68d
Author: Kiwoong Kim <kwmad.kim@xxxxxxxxxxx>
Date:   Fri Jan 21 14:37:55 2022 +0900

    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@xxxxxxxxxxx
    Signed-off-by: Kiwoong Kim <kwmad.kim@xxxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h
index 6a295c88d850f..a7ff0e5b54946 100644
--- a/drivers/scsi/ufs/ufshci.h
+++ b/drivers/scsi/ufs/ufshci.h
@@ -142,7 +142,8 @@ static inline u32 ufshci_version(u32 major, u32 minor)
 #define INT_FATAL_ERRORS	(DEVICE_FATAL_ERROR |\
 				CONTROLLER_FATAL_ERROR |\
 				SYSTEM_BUS_FATAL_ERROR |\
-				CRYPTO_ENGINE_FATAL_ERROR)
+				CRYPTO_ENGINE_FATAL_ERROR |\
+				UIC_LINK_LOST)
 
 /* HCS - Host Controller Status 30h */
 #define DEVICE_PRESENT				0x1



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux