Re: [PATCH] clk: qcom: gdsc: treat optional supplies as optional
From: Konrad Dybcio
Date: Mon Mar 25 2024 - 15:21:37 EST
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:
if (ret != -ENODEV)
return ret;
which is basically repeating the difference that _optional makes
Konrad