The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Hans de Goede <hansg@kernel.org>
Cc: "Tarang Raval" <tarang.raval@siliconsignals.io>,
	"Kate Hsuan" <hpa@redhat.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Hans Verkuil" <hverkuil+cisco@kernel.org>,
	"Serin Yeh" <serin.yeh@intel.com>,
	"Damjan Georgievski" <gdamjan@gmail.com>,
	"Kieran Bingham" <kieran.bingham@ideasonboard.com>,
	computman <anis@talbi.fr>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Daniel Scally" <dan.scally@ideasonboard.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>
Subject: Re: [PATCH v6 3/4] platform: int3472: discrete: con_id vana for Sony IMX471 as power enable
Date: Wed, 1 Jul 2026 14:12:09 +0300	[thread overview]
Message-ID: <akT2CSCbaR0a3BMA@kekkonen.localdomain> (raw)
In-Reply-To: <c7634571-4682-41d5-aa9d-8b965d641d51@kernel.org>

Hi Hans,

On Wed, Jul 01, 2026 at 01:01:58PM +0200, Hans de Goede wrote:
> Hi,
> 
> On 1-Jul-26 08:19, Tarang Raval wrote:
> > Hi Hans,                                                                       
> >                                                                                
> >> On 30-Jun-26 09:32, Tarang Raval wrote:                                      
> >>> Hi Kate,                                                                   
> >>>                                                                            
> >>>> Update the con_id for the Sony IMX471 sensor to "vana" to serve as the    
> >>>> power enable. Additionally, the HID values SONY471A and TBE20A0, both     
> >>>> associated with the IMX471 image sensor, have been identified on Lenovo   
> >>>> laptops.                                                                  
> >>>>                                                                           
> >>>> Signed-off-by: Kate Hsuan <hpa@redhat.com>                                
> >>>                                                                            
> >>> Thanks, looks good.                                                        
> >>>                                                                            
> >>> Reviewed-by: Tarang Raval <tarang.raval@siliconsignals.io>                 
> >>                                                                              
> >> Hmm, the imx471 driver is still pending upstream:                            
> >>                                                                              
> >> https://lore.kernel.org/linux-media/20260629074026.35490-5-hpa@redhat.com/   
> >>                                                                              
> >> As part of this series.                                                      
> >>                                                                              
> >> Please just use the standardized "avdd" in that driver instead               
> >> of "vana" (which also seems to refer to the analog supply vdd,               
> >> which is what avdd stands for).                                              
> >>                                                                              
> >> Then this whole patch is unnecessary and can be dropped from                 
> >> this series.                                                                 
> >                                                                                
> > The regulator name "vana" comes directly from the Sony IMX471 sensor           
> > datasheet, which typically refers to the analog supply voltage. Using the      
> > datasheet name helps keep the driver consistent with the hardware              
> > documentation and makes it easier to cross-reference.                          
> >                                                                                
> > as per my understanding, the more standardized way is to use the regulator     
> > name as per the sensor datasheet. Therefore, I respectfully disagree with 
> > your suggestion.                                                           
> 
> As shown by the need for this patch on x86 at least because there
> is no devicetree it greatly helps if all Linux sensor drivers use
> standardized names for their regulators rather then using the exact name
> from the datasheet which often is not very consistent.
> 
> And "avdd" is the name we've standardized on for this, so lets use that:
> 
> hans@shalem:~/projects/linux$ grep -l '"vana"' drivers/media/i2c/*.c | wc -l
> 4
> hans@shalem:~/projects/linux$ grep -l '"avdd"' drivers/media/i2c/*.c | wc -l
> 36
> 
> The alternative is needing to add more and more quirks as different
> sensors are used, which is not great.

I do agree that having a constant name for the regulators would be
beneficial for the int3472 driver. Still, if, and presumably, when that
sensor gets DT support, the bindings will use the regulator name from the
datasheet.

Let's just use the datasheet name now and add the few lines needed to the
int3472 driver and avoid the churn in the future. There's a limited number
of sensor drivers that need this after all.

I'd be more concerned of what's going on in tps68470_board_data.c for
instance.

-- 
Kind regards,

Sakari Ailus

  reply	other threads:[~2026-07-01 11:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29  7:40 [PATCH v6 0/4] Add Sony IMX471 camera sensor driver Kate Hsuan
2026-06-29  7:40 ` [PATCH v6 1/4] media: ipu-bridge: Add DMI information of Lenovo X9 to the image upside-down list Kate Hsuan
2026-06-29  7:40 ` [PATCH v6 2/4] media: ipu-bridge: Add Sony IMX471 for Lenovo X1 Carbon G14 Kate Hsuan
2026-06-29  7:40 ` [PATCH v6 3/4] platform: int3472: discrete: con_id vana for Sony IMX471 as power enable Kate Hsuan
2026-06-30  7:32   ` Tarang Raval
2026-06-30 13:33     ` Hans de Goede
2026-07-01  6:19       ` Tarang Raval
2026-07-01 11:01         ` Hans de Goede
2026-07-01 11:12           ` Sakari Ailus [this message]
2026-07-01 12:33             ` Tarang Raval
2026-07-02 18:05               ` Hans de Goede
2026-07-04 19:16                 ` Sakari Ailus
2026-07-02 18:01             ` Hans de Goede
2026-06-29  7:40 ` [PATCH v6 4/4] media: i2c: imx471: Add Sony IMX471 image sensor driver Kate Hsuan

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=akT2CSCbaR0a3BMA@kekkonen.localdomain \
    --to=sakari.ailus@linux.intel.com \
    --cc=anis@talbi.fr \
    --cc=dan.scally@ideasonboard.com \
    --cc=gdamjan@gmail.com \
    --cc=hansg@kernel.org \
    --cc=hpa@redhat.com \
    --cc=hverkuil+cisco@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=serin.yeh@intel.com \
    --cc=tarang.raval@siliconsignals.io \
    /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