[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1abe03bf-5de5-f73e-1043-46872a38e815@linaro.org>
Date: Wed, 25 May 2022 14:33:18 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Vladimir Zapolskiy <vladimir.zapolskiy@...aro.org>,
kholk11@...il.com, Robert Foss <robert.foss@...aro.org>,
Bryan O'Donoghue <bryan.odonoghue@...aro.org>
Cc: agross@...nel.org, bjorn.andersson@...aro.org, mchehab@...nel.org,
robh+dt@...nel.org, marijns95@...il.com, konradybcio@...il.com,
martin.botka1@...il.com, linux-arm-msm@...r.kernel.org,
linux-media@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, todor.too@...il.com
Subject: Re: [PATCH v2 1/7] media: camss: ispif: Correctly reset based on the
VFE ID
Wow, a patchset from 2020.
On 25/05/2022 12:03, Vladimir Zapolskiy wrote:
> On 10/22/20 20:47, kholk11@...il.com wrote:
>> From: AngeloGioacchino Del Regno <kholk11@...il.com>
>>
>> Resetting the ISPIF VFE0 context is wrong if we are using the VFE1
>> for dual-camera or simply because a secondary camera is connected
>> to it: in this case the reset will always happen on the VFE0 ctx
>> of the ISPIF, which is .. useless.
>>
>> Fix this usecase by adding the ISPIF_RST_CMD_1 address and choose
>> where to do the (or what to) reset based on the VFE line id.
>>
>> Signed-off-by: AngeloGioacchino Del Regno <kholk11@...il.com>
>> Reviewed-by: Robert Foss <robert.foss@...aro.org>
>> ---
>> .../media/platform/qcom/camss/camss-ispif.c | 85 ++++++++++++-------
>> .../media/platform/qcom/camss/camss-ispif.h | 2 +-
>> 2 files changed, 56 insertions(+), 31 deletions(-)
>>
[skipped]
>> @@ -355,7 +379,7 @@ static int ispif_set_power(struct v4l2_subdev *sd,
>> int on)
>> goto exit;
>> }
>> - ret = ispif_reset(ispif);
>> + ret = ispif_reset(ispif, line->vfe_id);
>
> But in fact here is an error.
>
> line->vfe_id is never set.
>
> I'm unable to test any fix, since I don't have a correspondent hardware,
> but I can write a fix for someone's testing.
I have a sda660 device, but I don't have cameras attached. So one will
have to use TPG.
--
With best wishes
Dmitry
Powered by blists - more mailing lists