Re: [PATCH] clk: qcom: gdsc: treat optional supplies as optional
From: Johan Hovold
Date: Tue Mar 26 2024 - 03:20:42 EST
On Mon, Mar 25, 2024 at 08:21:24PM +0100, Konrad Dybcio wrote:
> On 25.03.2024 3:10 PM, Dmitry Baryshkov wrote:
> > On Mon, 25 Mar 2024 at 16:01, Mark Brown <broonie@xxxxxxxxxx> wrote:
> >>
> >> On Mon, Mar 25, 2024 at 09:19:57AM +0100, Johan Hovold wrote:
> >>> Since commit deebc79b28d6 ("clk: qcom: gpucc-sc8280xp: Add external
> >>> supply for GX gdsc") the GDSC supply must be treated as optional to
> >>> avoid warnings like:
> >>>
> >>> gpu_cc-sc8280xp 3d90000.clock-controller: supply vdd-gfx not found, using dummy regulator
> >>>
> >>> on SC8280XP.
> >>
> >> Can this device actually run with the supply physically disconnected?
> >
> > On SC8280XP this is supplied via power-domain instead of the supply.
>
> I think Dmitry is asking about this bit:
AFAICT, Dmitry did not ask anything.
> if (ret != -ENODEV)
> return ret;
>
> which is basically repeating the difference that _optional makes
Not sure what you meant by this either. This is how the regulator
subsystem works.
Johan