]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: host: mediatek: Fix shutdown/suspend race condition
authorPeter Wang <peter.wang@mediatek.com>
Wed, 24 Sep 2025 09:43:27 +0000 (17:43 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Oct 2025 01:36:46 +0000 (21:36 -0400)
commit014de20bb36ba03e0e0b0a7e0a1406ab900c9fda
tree17d18e18f15ab6d4ac3cf8acaaaf23a45253eccb
parent1fd05367d5b1a5edd3d14c966a5f510e5b8a0c5e
scsi: ufs: host: mediatek: Fix shutdown/suspend race condition

Address a race condition between shutdown and suspend operations in the
UFS Mediatek driver. Before entering suspend, check if a shutdown is in
progress to prevent conflicts and ensure system stability.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Acked-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Link: https://patch.msgid.link/20250924094527.2992256-6-peter.wang@mediatek.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-mediatek.c