public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Mikko Perttunen <mperttunen@nvidia.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>,
	Jon Hunter <jonathanh@nvidia.com>
Cc: Laxman Dewangan <ldewangan@nvidia.com>,
	Dmitry Osipenko <digetx@gmail.com>,
	Andi Shyti <andi.shyti@kernel.org>,
	Linus Walleij <linusw@kernel.org>,
	linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org,
	linux-tegra@vger.kernel.org
Subject: Re: [PATCH net-next] i2c: tegra: runtime PM is not IRQ-safe
Date: Wed, 18 Feb 2026 10:35:23 +0900	[thread overview]
Message-ID: <15817166.RDIVbhacDa@senjougahara> (raw)
In-Reply-To: <046c9bca-f6a5-47ce-8147-6e864b364dc3@nvidia.com>

On Wednesday, February 18, 2026 1:46 AM Jon Hunter wrote:
> On 17/02/2026 16:40, Russell King (Oracle) wrote:
> 
> ...
> 
> >> Yes we should always follow that rule. However, in this case, I believe
> >> that the build time dependency on the PINCTRL subsystem was only exposed
> >> by adding the 'i2c_dev->dev->pins'. Unless I am misunderstanding ...
> > 
> > Yes, it looks like it.
> > 
> > However, I wonder why the dependency has to be complicated.
> > 
> > ARCH_TEGRA in both arm64 and arm selects PINCTRL, so we can assume that
> > 
> > PINCTRL will be set for ARCH_TEGRA. So:
> >   config I2C_TEGRA
> >   
> >   	tristate "NVIDIA Tegra internal I2C controller"
> >   	depends on ARCH_TEGRA || (COMPILE_TEST && (ARC || ARM || ARM64 || 
M68K
> >   	|| RISCV || SUPERH || SPARC))> 
> > +	depends on PINCTRL
> > 
> > is a shorter way of writing this, and it makes sense - pinctrl isn't
> > required because we're doing a compile test, it's required because
> > the driver itself fundamentally requires it with this change whether
> > or not we're doing a compile test.
> 
> Yes that's true indeed.
> 
> Mikko, do you want to take care of this?

My thought was it would be better to keep the PINCTRL dependency grouped with 
COMPILE_TEST. That makes it clear it's only needed because of it -- clearer to 
the reader that ARCH_TEGRA implies it. Kind of like not checking for NULL 
pointers in C code when the contract is that the pointer is not NULL.

I can change it though if you'd like.

Mikko

> 
> Jon
> 
> --
> nvpublic





  reply	other threads:[~2026-02-18  1:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-17 15:40 [PATCH net-next] i2c: tegra: runtime PM is not IRQ-safe Russell King (Oracle)
2026-02-17 15:50 ` Russell King (Oracle)
2026-02-17 15:55 ` Jon Hunter
2026-02-17 16:04   ` Russell King (Oracle)
2026-02-17 16:15     ` Jon Hunter
2026-02-17 16:40       ` Russell King (Oracle)
2026-02-17 16:46         ` Jon Hunter
2026-02-18  1:35           ` Mikko Perttunen [this message]
2026-02-18  8:30             ` Jon Hunter
2026-03-18 18:17               ` Russell King (Oracle)
2026-03-19  2:16                 ` Mikko Perttunen

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=15817166.RDIVbhacDa@senjougahara \
    --to=mperttunen@nvidia.com \
    --cc=andi.shyti@kernel.org \
    --cc=digetx@gmail.com \
    --cc=jonathanh@nvidia.com \
    --cc=ldewangan@nvidia.com \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    /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