Re: [PATCH v8 18/23] scsi: ufs: mediatek: Don't acquire dvfsrc-vcore twice
From: Peter Wang (王信友)
Date: Thu Mar 05 2026 - 04:39:23 EST
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@xxxxxxxxxxxxx>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@xxxxxxxxxxxxx>
Reviewed-by: Peter Wang <peter.wang@xxxxxxxxxxxx>