[PATCH v8 18/23] scsi: ufs: mediatek: Don't acquire dvfsrc-vcore twice
Peter Wang (王信友)
peter.wang at mediatek.com
Thu Mar 5 01:38:24 PST 2026
On Wed, 2026-03-04 at 15:53 +0100, Nicolas Frattaroli wrote:
> As part of its featureset, the ufs-mediatek driver needs to play with
> an
> optional dvfsrc-vcore regulator for some of them.
>
> However, it currently does this by acquiring two different references
> to
> it in two different places, needlessly duplicating logic.
>
> Move reg_vcore to the host struct, acquire it in the same function as
> avdd09 is acquired, and rework the users of reg_vcore.
>
> Reviewed-by: AngeloGioacchino Del Regno
> <angelogioacchino.delregno at collabora.com>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
Reviewed-by: Peter Wang <peter.wang at mediatek.com>
More information about the Linux-mediatek
mailing list