Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp133688lqf; Fri, 26 Apr 2024 01:48:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHajr5Uk+XlhLmmNUWdEasTnCTWF//F++jB+QLkTIPHzy17EQOt9hUGvZU9u3jtiKW36s2IFDf51bZSjuTO43XApj+1v3E3xnrJgGPSw== X-Google-Smtp-Source: AGHT+IGKAvPM6ad5rFAh5umXn+P1G6PfqU+FLJpTWpVUyu4g1mvjKP6SIfLAbdTUllILeuX5SlY4 X-Received: by 2002:a05:6808:8dc:b0:3c6:d99:41e9 with SMTP id k28-20020a05680808dc00b003c60d9941e9mr2200756oij.38.1714121284573; Fri, 26 Apr 2024 01:48:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714121284; cv=pass; d=google.com; s=arc-20160816; b=P1Po57JBB/dhuLExefJAXAk6kKOe9fFoOXLcbGkKI9x+t1sUIbbx5FVKwmWn8Utuxd VQo9uhBpZWbHPZqtbA5H5CvE5NyM81PEwa3N1N3vUKfwJldCpFsW5yd2u9XawzxQL+EV x8MV+qj7HSYZbS6K3KJwrhIKqqZjeIVokwi7OB3HHywU0GdVmvtn/zgWAV5MEvL3YB0O 0mEmn/nyfBeTgKVIcxRQuK98s57ShoXbyWAQ1W04bhpzQsdgc+F3hCmT2Jt4AvtV62aW bfTicXy0WNL0xoC2HobTQdk8KunXrw8EGWUE+oJqLz2xaCdfyiiPW2daDuKwBgUGWqtY /PHQ== ARC-Message-Signature: i=2; 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=1GlQQDniUNI7oXCoE7vPyzC6a7LaN00a8acVhUbsE/g=; fh=ufVw1nmsgFoHY/u9IcKUKvaHvGrBbAs1hoMq8zNtALo=; b=xELaIVh966PSp7iSZSjobPTrLkw0ZxndZxhhKSAinmzWa9b7K6NT+dHWURiADYLNEt uhl7YB9OXXazpUFg12PYRirEEFQK7suRzwsIm4UugHdrUR0yZ5abZCL6UQGnS5Nq63iE sC9pMd0vvZhuli844TR7VvYF9ldVYoF1neEuf7RwI2aSxPO1WuhzbOYxs4NR17Lyve9c tXywv2GK8OrszvaCBe5wbMn3t2hAb4HmL46QFYj7hOCzolxioL1q8hZ/Pu/zukZSJ81L uGXO0Ik26Pq1E/PNHJH5IGG9CUeg/U/XHTS1jY97VKYsX5ovmXg+2hSBeePreZYzgo6H bUJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GpOjRpag; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-159721-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h10-20020a63f90a000000b005dc87994572si14712915pgi.346.2024.04.26.01.48.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:48:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159721-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GpOjRpag; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-159721-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 996F0288AF7 for ; Fri, 26 Apr 2024 08:41:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D986413C3D2; Fri, 26 Apr 2024 08:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GpOjRpag" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C76441C62; Fri, 26 Apr 2024 08:41:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714120902; cv=none; b=Ism8sonwcNzJYoCUu0XKrmLNfQyZk6Rpzgz0rPofX99ONPdeAec6z2r0c6pxULIYsLhjLT6TufWEeyoiHk2Hnf7xIfIIqy79dY7LyWHEA7Rzukcbz4eVuDxeRrfW8fdU1ws+Qgs72UIQORWmevNdaujgENDGzUmotYClewEsDc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714120902; c=relaxed/simple; bh=gmfMHQVu+QXaMmTfQbZlMyBhmPZ6SDodHpc9j3YOVH0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RDvdXe/zRyPGpGY4NFN28LZ/1rPl22sFPRmLpCUVpvfy0nfQmLKvsblSdImrx771810/oexoK12273feU3rsLFhcfq5F+8tPRE+In35gUgNe/fdWsIH3tx3D4foeBmxdV+YByXuZT0vHRR2N+T1uFDcrU5yYvGoBtVFnpL+JKXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GpOjRpag; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56c5d05128dso1910080a12.0; Fri, 26 Apr 2024 01:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714120899; x=1714725699; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=1GlQQDniUNI7oXCoE7vPyzC6a7LaN00a8acVhUbsE/g=; b=GpOjRpagKU9jNZ9b9Jn9Zv2elFhOllVwRknvQMuQUrms9lgBDXyGzV6YtrWjjlE6hO DqZqLkuOKKZw/gBjg6Y94KRhJEwSEc7fFTUvocSYCBeUwlqlGayop7PpRdb2vm7GpFwx hDrT9bVC5PGUSdm2kTsu+eF+TshTCiOxMifLHCzZZX2FE9ighr16w1xuGFW28NTpZzzF jpMU43e1mvZV/Ihklf52XIQXHjn41HaPHIgYn4Q5s/5oNVsAQx3q8AvhbKWLvxaIKUU7 rVNw/y/IngSgZti/Fz16jdTdeK9/ZsHbo3SfYf+Pu93hN5ALNfODMge26/8NWq/jYesK 1Ucg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714120899; x=1714725699; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1GlQQDniUNI7oXCoE7vPyzC6a7LaN00a8acVhUbsE/g=; b=fmY3KsfQfZ6yH9lis8K7zrqO1vR1RZkeRJnnz3dRYTaJpqb/UzdTaMmXqNhtFgRQHV ykZJl2DMVGP8KUW8dg+miCCM78ytH+MS9GHLmf9OQY8l4DTMWw3HeStNIUgiHh4hak28 ckdZTA/j3kqQBvJ5HntcF9++vEh2hCAiLqXb3u+gaYAvnv06nbNXRUw/HNyiVKpHPSWk J82TzJHmw7fT0h4fBMR/Mm5SLzU/Wu4L3LE9RBclfxMlwMnTf/TLopznDkMWn/caeZz6 JwZbzImg3n2oVYpm2KhOH7iQjChwahJkVH8iNJTESQ77iOLQhRY5Lo3BrBy3uizYBcH4 W88w== X-Forwarded-Encrypted: i=1; AJvYcCXlJWVwHaRROD4psSPQszl7KvnsFUdJf0xB9ZUeVuxyfNxlZJKUjOtD7+2fgUa/OKAjFhyrF0pJ8gmBaVkiGwq+A1gWi/DoTOsqf3q/PqJj2hTwERoyAZ3xlWkbdfxdzLnbvc8LhXTeN8I= X-Gm-Message-State: AOJu0YyjNs18Qd8QiBItNJbjqPUEjNxIyCm+nq4z+G08YC3kWKiGRsuL joY8gFk5GTgR79Dogk+KbbJlhZtKKjzLHdgLcCOv0FEqkNBhdWF2cgI19Q== X-Received: by 2002:a50:cd15:0:b0:56e:64a:2a47 with SMTP id z21-20020a50cd15000000b0056e064a2a47mr1261278edi.42.1714120898379; Fri, 26 Apr 2024 01:41:38 -0700 (PDT) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation (net-2-39-143-74.cust.vodafonedsl.it. [2.39.143.74]) by smtp.gmail.com with ESMTPSA id u15-20020aa7d0cf000000b005704b18ed2fsm9770546edo.83.2024.04.26.01.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:41:38 -0700 (PDT) Date: Fri, 26 Apr 2024 10:41:36 +0200 From: Tommaso Merciai To: Sakari Ailus 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 Sakari, On Fri, Apr 26, 2024 at 07:13:06AM +0000, Sakari Ailus wrote: > 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. Sorry, just to clarify. You are suggesting just to add sendemail.suppresscc. option right? No cc stable@vger.kernel.org Thanks & Regards, Tommaso > > -- > Regards, > > Sakari Ailus