Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp98262lqf; Fri, 26 Apr 2024 00:13:46 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCXMpSVrIXa+dQCGmGk0tsH1Agz825TUYC0fzaJ6hsZEP6WMbvuDIaNquiDni1y0GlKK73YjX7r/SJUs+MUW4WX/faWn0Z3lAdBeXnQUPQ== X-Google-Smtp-Source: AGHT+IHvj3wwXZD9k4b2EIUYcU/0J3x+k1rXmd7ZBHC8Ab+cNSvRIXBxIXxEfOQR8b955Pra6CcQ X-Received: by 2002:a17:903:110e:b0:1ea:264:da9e with SMTP id n14-20020a170903110e00b001ea0264da9emr2411182plh.43.1714115626187; Fri, 26 Apr 2024 00:13:46 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1714115626; cv=pass; d=google.com; s=arc-20160816; b=L4tRXpff7E9A6qtV24u2ge/rbq/sIoRMklVKaHI+Pf5y+9QRpsF1PWzQXSfOMZn8DU uCTNAD006/lWLf9YCBuhPbGKEaN/j2ZzUlncIAX4cVaUqE91ZJKnAzqqKoNXSlgOy0rw bDKVPhI7hfhHeQgtK3XxBWLwfF2/2dyPU4LLyuWvtdIsOWHzwGZcB9k2v2Vo+Wvny9/g 1pTXvve+bj2neR66D/q8q+qRtGb7QupvsxM07wO+gZIlAlUXpPXNNJdBoFvXyQOqUnCy 3UscgqwUcc8JKxEmIZYFp2YiVLD6wFcLG7tHeDeedptcz1O0ffgQiw6gK7e5TErgBlG8 S2gQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=53jluzU89EQBBFVoMObpH5Ps1oIGuKHOf1ADfGhaN5M=; fh=ml/Ca3iZdE7EnLcu35SwJb8ZN+mvbu+ELDlQI7DVTqY=; b=OiyX/644I54actw6ep6RecnxuGY2KNePa0TR78wj4meBfOOipD4np5mKnFC4FDSznq r2MPZnEWhiJuqTd/GZqaofLTzn/A7n0TL4M/IIKQhnNeN8IaFVQaFCEg2pwzx1Jm0/rM K08qIcT2Kor4auUf/CiZmEdvyCbbP1d+JxyY+9TOgtZIoTYfjIeVFvL0CU6cSpCVoxjk SctaOcxi0tMKsyu8XJp9x9jmmjj9W+QEo+0t8/9KxwSz7nt84bVcG6Fg1W6903UOFjtm kybrzCckR3So97GY1tzYlxfrNx2oyI7zSr6pRxg/2wvDwO4qhT7qMpsdlUlC1eQY1Xg0 xJIw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=qVJjDIg3; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-kernel+bounces-159618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159618-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mc15-20020a1709032b0f00b001e28d13fbf3si15434109plb.37.2024.04.26.00.13.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 00:13:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=qVJjDIg3; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-kernel+bounces-159618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159618-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 555872867EA for ; Fri, 26 Apr 2024 07:13:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE86013C3DC; Fri, 26 Apr 2024 07:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b="qVJjDIg3" Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49E8513B787; Fri, 26 Apr 2024 07:13:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.185.170.37 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714115592; cv=pass; b=PjprR0IQ8IV5VIaZzyy42JET3UlDb1obakf/geqwkLOVyFvjTZQTgTcJIcct+wa8FfYFKpOn57DQuBGN5acb27cbNbDtCoigWF10TfI6ERUXf/5ZTzRmdNq4XlqMQRWAG/UeNsLlce/e4I5TW928A4SWAom9PvzkNbUAq8S62jg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714115592; c=relaxed/simple; bh=cafSks1k89IN6rokLafePAbd3MXzKl3T+33eU3ZDGyE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ANX7pkEi6q+TfYAvLezcQnJ/1oKhf/zlhg2E/ykRLT/NvDXRU0gfWhX4vtBSSr07RLc+h1Yvc6nEhQe4s8O4uUBp+fBSR50LlDB61cN9AaT6D81TKO+bzGvGc2ciRroisGnp5oB/rdeGX1W4e+iQ6L17MJmJ6GLMvdmkQ/VRjhE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi; spf=pass smtp.mailfrom=iki.fi; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b=qVJjDIg3; arc=pass smtp.client-ip=185.185.170.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iki.fi Received: from hillosipuli.retiisi.eu (2a00-1190-d1dd-0-c641-1eff-feae-163c.v6.cust.suomicom.net [IPv6:2a00:1190:d1dd:0:c641:1eff:feae:163c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4VQkTH19lCz49Pxk; Fri, 26 Apr 2024 10:13:07 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1714115587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=53jluzU89EQBBFVoMObpH5Ps1oIGuKHOf1ADfGhaN5M=; b=qVJjDIg3HZ5rc2ntHDEOWPR6nFXmt4VEgT6cnUgCHNJaDeRer1p/3czSXvk2KCcQ9KLmF3 ieaXJhKYx3f6csVcdPOM5eDEq7fLJtGW1moqysdEbDIAYV5ZazqYAnMg4JIzlU2KefG1WE iTzPH8fi3RIeC9CU3IwjCCTkqZT9189lrUcyX8SQCBmE9qF9SWaSPHJTTFyF0HEh9PPibS 3A7rWHChghbr8f0Xvx5qU4GPHMDp37v5dOshr8u/UEnWIic7DvZwoxGupwUNZWNnpWOMxy 1TpZanEEimMcXdA6PLkhdcYWWdlAXS9Zz/L7aOf4rCrne9lAydBDVu1XcConAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1714115587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=53jluzU89EQBBFVoMObpH5Ps1oIGuKHOf1ADfGhaN5M=; b=iyF3vdeF//2nEC10LW4R9knRl8kytK4DrLG7dpbzami/Ygu1zsbtPL+uK95p8hmg5Uqo7h uwOe2E3Z1MFOMRvmI7KZc37is8qtubYpfO6S7F/6RwwWgOKS+W8wWSpeVcaCAthLfFmYSo Ev+awxmFECPTNeXSD9rRoK8sEvCkG9pj5ZTNpbvOnISOEKjZ+OGnOWSaZo0CT8OL0f91FR aIGgLCIdPc/t7Rhv9rzoBm775jA/oqYhLFac5kHYqHcWYMCv9HgghJKio3snMoS7wWWZ0c Ipr5ew2OoqtgQ+OZR1n2c+Gu2BUGhHI3mKcJWm4nuVYB2k5UVK2TKQ+DX572Nw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1714115587; a=rsa-sha256; cv=none; b=cCzT4XqLKaLDDaxQA6f7EWIRqBe7ydRrvYr9KRcu0uYZrhKsWoqVHIkLOo20KjJ+Ytqwpj RuBKSD34X4AUQqlQt2It7roM0YsS8+aGQdeAXnJkBFS8gAUuzi95anC9KB0lV7Y1rQNv7b s+4LWHMGVfeEAI8f4tifAeI0vSg/R6EHPfWFq1nXT6eEYt/2NaOrgyakctZ5gbY3F/j5gP PxleIZzo5XBFV1LflrsLcBEfauLF7bcKN+tBXn1B1xWbyASx0qqXK8X8T61tNNgN8FXmFh qI3r+yG5hcFwlnUYo1fMFSQFm0QIIyUp2FWemwJeWBddNGRhA1/czzdd/RsjOA== Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id CA1C6634C93; Fri, 26 Apr 2024 10:13:06 +0300 (EEST) Date: Fri, 26 Apr 2024 07:13:06 +0000 From: Sakari Ailus To: Tommaso Merciai Cc: martin.hecht@avnet.eu, michael.roeder@avnet.eu, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] media: i2c: alvium: Move V4L2_CID_GAIN to V4L2_CID_ANALOG_GAIN Message-ID: References: <20240416141905.454253-1-tomm.merciai@gmail.com> <20240416141905.454253-6-tomm.merciai@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Tommaso, On Fri, Apr 26, 2024 at 09:09:35AM +0200, Tommaso Merciai wrote: > Hi Sakari, > Thanks for your review. > > On Wed, Apr 24, 2024 at 06:11:26PM +0000, Sakari Ailus wrote: > > Hi Tommaso, > > > > On Tue, Apr 16, 2024 at 04:19:05PM +0200, Tommaso Merciai wrote: > > > Into alvium cameras REG_BCRM_GAIN_RW control the analog gain. > > > Let's use the right V4L2_CID_ANALOGUE_GAIN ctrl. > > > > > > Signed-off-by: Tommaso Merciai > > > --- > > > drivers/media/i2c/alvium-csi2.c | 6 +++--- > > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > > > diff --git a/drivers/media/i2c/alvium-csi2.c b/drivers/media/i2c/alvium-csi2.c > > > index 30ef9b905211..56d64f27df72 100644 > > > --- a/drivers/media/i2c/alvium-csi2.c > > > +++ b/drivers/media/i2c/alvium-csi2.c > > > @@ -1993,7 +1993,7 @@ static int alvium_g_volatile_ctrl(struct v4l2_ctrl *ctrl) > > > int val; > > > > > > switch (ctrl->id) { > > > - case V4L2_CID_GAIN: > > > + case V4L2_CID_ANALOGUE_GAIN: > > > val = alvium_get_gain(alvium); > > > if (val < 0) > > > return val; > > > @@ -2025,7 +2025,7 @@ static int alvium_s_ctrl(struct v4l2_ctrl *ctrl) > > > return 0; > > > > > > switch (ctrl->id) { > > > - case V4L2_CID_GAIN: > > > + case V4L2_CID_ANALOGUE_GAIN: > > > ret = alvium_set_ctrl_gain(alvium, ctrl->val); > > > break; > > > case V4L2_CID_AUTOGAIN: > > > @@ -2154,7 +2154,7 @@ static int alvium_ctrl_init(struct alvium_dev *alvium) > > > > > > if (alvium->avail_ft.gain) { > > > ctrls->gain = v4l2_ctrl_new_std(hdl, ops, > > > - V4L2_CID_GAIN, > > > + V4L2_CID_ANALOGUE_GAIN, > > > alvium->min_gain, > > > alvium->max_gain, > > > alvium->inc_gain, > > > > This looks like a bugfix. Shouldn't it be cc'd to stable as well? A Fixes: > > tag would be nice, too. > > Fully agree. > Plan is to add in v2 Fixes: 0a7af872915e ("media: i2c: Add support for alvium camera") > like you suggest and stable@vger.kernel.org in CC. Just make sure git send-email won't actually cc the patch to the stable e-mail address. Cc: tag is enough. The git config option is sendemail.suppresscc. -- Regards, Sakari Ailus