Linux Media Controller development
 help / color / mirror / Atom feed
From: Martin Hecht <mhecht73@gmail.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: martin.hecht@avnet.eu, michael.roeder@avnet.eu,
	stable@vger.kernel.org, Tommaso Merciai <tomm.merciai@gmail.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans Verkuil <hverkuil@kernel.org>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] media: i2c: alvium: Fix controls for WB/AWB
Date: Thu, 7 May 2026 18:42:15 +0200	[thread overview]
Message-ID: <7a353450-770a-4820-ad23-8066b736d87e@gmail.com> (raw)
In-Reply-To: <afsh2tmV5AFlMCML@kekkonen.localdomain>

Hi,

that patch has been superseded by patch 
20260507163443.39794-1-mhecht73@gmail.com what addresses more critical 
issues.

Martin

On 5/6/26 13:11, Sakari Ailus wrote:
> Hi Martin,
> 
> On Wed, May 06, 2026 at 12:16:13PM +0200, Martin Hecht wrote:
>> Hi Sakari,
>>
>> thank you for the comments.
>>
>> On 5/6/26 11:28, Sakari Ailus wrote:
>>> Hi Martin,
>>>
>>> Thanks for the patch.
>>>
>>> On Tue, May 05, 2026 at 04:25:10PM +0200, Martin Hecht wrote:
>>>> With that patch the controls for red-balance and blue-balance were created
>>>> only if the particular camera supports that. Otherwise the pointers on
>>>> the control variable are initialized with NULL to prevent side effects for
>>>> clustering with AWB control.
>>>>
>>>> Fixes: 0a7af872915e ("media: i2c: Add support for alvium camera")
>>>> Signed-off-by: Martin Hecht <mhecht73@gmail.com>
>>>> ---
>>>>    drivers/media/i2c/alvium-csi2.c | 37 ++++++++++++++++++++-------------
>>>>    1 file changed, 22 insertions(+), 15 deletions(-)
>>>>
>>>> diff --git a/drivers/media/i2c/alvium-csi2.c b/drivers/media/i2c/alvium-csi2.c
>>>> index b62b45a4f2fc..4c6934e9e177 100644
>>>> --- a/drivers/media/i2c/alvium-csi2.c
>>>> +++ b/drivers/media/i2c/alvium-csi2.c
>>>> @@ -2108,26 +2108,33 @@ static int alvium_ctrl_init(struct alvium_dev *alvium)
>>>>    						  0, 0, &alvium->link_freq);
>>>>    	ctrls->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY;
>>>
>>> This is a problem. Can you move setting the flags after checking the
>>> handler's error status? The functions adding controls may fail and this is
>>> simply a missing error check.
>>>
>>> Can you submit a fix, with a Fixes: tag and this patch should be rebased on
>>> the fix, please?
>>
>> I'm preparing a separate fix for that issue. It's the same situation also
>> for some other controls like pixel_rate and link_frequency but not only. Can
>> I combine that into one patch for fix only that in alvium_ctrl_init?
> 
> Please do.
> 


      reply	other threads:[~2026-05-07 16:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-05 14:25 [PATCH v1] media: i2c: alvium: Fix controls for WB/AWB Martin Hecht
2026-05-06  9:28 ` Sakari Ailus
2026-05-06 10:16   ` Martin Hecht
2026-05-06 11:11     ` Sakari Ailus
2026-05-07 16:42       ` Martin Hecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a353450-770a-4820-ad23-8066b736d87e@gmail.com \
    --to=mhecht73@gmail.com \
    --cc=hverkuil@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=martin.hecht@avnet.eu \
    --cc=mchehab@kernel.org \
    --cc=michael.roeder@avnet.eu \
    --cc=sakari.ailus@linux.intel.com \
    --cc=stable@vger.kernel.org \
    --cc=tomm.merciai@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox