summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Wang <peter.wang@mediatek.com>2026-09-14 16:49:24 +0800
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-25 22:29:41 -0400
commit6efee14ca0aed33103ea17f4367da173f893442f (patch)
tree942eb5dc7534d9594095165c2bc9b6f254476d2b /scripts
parent00eec343c7306be7f1103f5002abd77496937ff9 (diff)
downloadlinux-next-6efee14ca0aed33103ea17f4367da173f893442f.tar.gz
linux-next-6efee14ca0aed33103ea17f4367da173f893442f.zip
scsi: ufs: core: Always notify POST_CHANGE even on gear switch failure
Previously, POST_CHANGE was only notified on a successful gear switch. This could leave the host in an inconsistent state if resources were acquired in PRE_CHANGE (e.g. disabling auto-hibern8) but never released due to a missing POST_CHANGE. Fix this by always calling POST_CHANGE regardless of the gear switch result. On failure, pass dev_req_params = NULL to signal that there is nothing to apply; hosts that receive NULL simply skip their post work. Update the affected drivers (ufs-exynos and ufshcd-pci) to guard their POST_CHANGE logic with a NULL check so they correctly handle the failure case. Fixes: f5ca8d0c7a63 ("scsi: ufs: host: mediatek: Disable auto-hibern8 during power mode changes") Signed-off-by: Peter Wang <peter.wang@mediatek.com> Reviewed-by: Chun-Hung Wu <chun-hung.wu@mediatek.com> Link: https://patch.msgid.link/20260914085148.136429-2-peter.wang@mediatek.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions