[PATCH v2 0/2] ufs: fix POST_CHANGE pairing and AHIT race condition
Martin K. Petersen (Oracle)
mkp at kernel.org
Fri Sep 25 19:30:38 PDT 2026
> Patch 1 fixes a bug where POST_CHANGE was skipped on a failed gear
> switch, leaving the host in an inconsistent state if resources acquired
> in PRE_CHANGE were never released.
>
> Patch 2 fixes a race between the sysfs AHIT update path and the
> MediaTek host driver's power mode change path. A mutex and depth
> counter are introduced to serialize AHIT register access and ensure
> AHIT is correctly restored after the last disabler completes.
Applied to 7.4/scsi-staging, thanks!
--
Martin K. Petersen
More information about the Linux-mediatek
mailing list