]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: core: Add ufshcd_update_evt_hist() for UFS suspend error
authorSeunghwan Baek <sh8267.baek@samsung.com>
Wed, 10 Dec 2025 06:38:54 +0000 (15:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:16 +0000 (12:57 +0100)
commit3fb2db6f50eab78f81455d137ed8987541d16e9f
tree4e8c64c82ad143cf43afd152e877e4fcfad3c3ca
parenta0d4e9e24474fa739cea696b5757071e80cb6858
scsi: ufs: core: Add ufshcd_update_evt_hist() for UFS suspend error

commit c9f36f04a8a2725172cdf2b5e32363e4addcb14c upstream.

If UFS resume fails, the event history is updated in ufshcd_resume(), but
there is no code anywhere to record UFS suspend. Therefore, add code to
record UFS suspend error event history.

Fixes: dd11376b9f1b ("scsi: ufs: Split the drivers/scsi/ufs directory")
Cc: stable@vger.kernel.org
Signed-off-by: Seunghwan Baek <sh8267.baek@samsung.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Link: https://patch.msgid.link/20251210063854.1483899-2-sh8267.baek@samsung.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ufs/core/ufshcd.c