Re: [PATCH] scsi: ufs: ufs-sprd: Fix vdd-mphy regulator leak on probe failure and remove

From: Martin K. Petersen (Oracle)

Date: Wed Nov 25 2026 - 22:34:16 EST


On Tue, 10 Nov 2026 14:54:57 +0800, Xiangwu Lai wrote:

> ufs_sprd_n6_init() enables the vdd-mphy regulator, but nothing ever
> disables it again: the driver has no .exit callback and no other path
> calls regulator_disable(), so the power rail stays enabled after a
> failed probe as well as after driver removal.
>
> The UFS core calls the vops .exit callback from ufshcd_hba_exit(),
> which runs on probe failure and on remove, so an .exit hook is the
> natural place to release the supply. All other vendor drivers in
> drivers/ufs/host/ already provide one.
>
> [...]

Applied to 7.4/scsi-fixes, thanks!

[1/1] scsi: ufs: ufs-sprd: Fix vdd-mphy regulator leak on probe failure and remove
https://git.kernel.org/mkp/scsi/c/4be084ac36f9

--
Martin K. Petersen