diff options
| author | 2026-09-14 16:49:24 +0800 | |
|---|---|---|
| committer | 2026-09-25 22:29:41 -0400 | |
| commit | 6efee14ca0aed33103ea17f4367da173f893442f (patch) | |
| tree | 942eb5dc7534d9594095165c2bc9b6f254476d2b /scripts | |
| parent | scsi: ufs: core: Dynamically disable timestamp on unsupported devices (diff) | |
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
