[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <40784fe0-3c70-4e1e-8b42-fa7230c2485d@linaro.org>
Date: Wed, 16 Jul 2025 11:59:46 +0100
From: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
To: Loic Poulain <loic.poulain@....qualcomm.com>
Cc: Bjorn Andersson <andersson@...nel.org>,
Michael Turquette <mturquette@...libre.com>, Stephen Boyd
<sboyd@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Robert Foss <rfoss@...nel.org>,
Todor Tomov <todor.too@...il.com>, Mauro Carvalho Chehab
<mchehab@...nel.org>, Konrad Dybcio <konradybcio@...nel.org>,
Vladimir Zapolskiy <vladimir.zapolskiy@...aro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org
Subject: Re: [PATCH v7 04/15] media: qcom: camss: Add support for PHY API
devices
On 16/07/2025 10:36, Loic Poulain wrote:
>> + if (!phy_np) {
>> + if (!res->legacy_phy)
>> + return -ENODEV;
>> +
>> + for (i = 0; i < camss->res->csiphy_num; i++) {
>> + ret = msm_csiphy_subdev_init_legacy(camss, &camss->csiphy[i],
>> + &res->csiphy_res[i],
>> + res->csiphy_res[i].csiphy.id);
>> + if (ret < 0) {
>> + dev_err(camss->dev,
>> + "Failed to init csiphy%d sub-device: %d\n",
>> + i, ret);
>> + return ret;
>> + }
>> + camss->csiphy[i].phy = ERR_PTR(-ENODEV);
>> }
> So what happens if we have `phy_np` and `!of_device_is_available`, we
> just continue without any phy initialized?
Hmm. Good question.
Yes but, that's probably not what we want.
Thanks, I will look into this.
---
bod
Powered by blists - more mailing lists