public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: 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,
	Mikko Perttunen <mperttunen@nvidia.com>
Subject: Re: [PATCH net-next] i2c: tegra: runtime PM is not IRQ-safe
Date: Tue, 17 Feb 2026 16:40:07 +0000	[thread overview]
Message-ID: <aZSZ54oZS9C1Qf1h@shell.armlinux.org.uk> (raw)
In-Reply-To: <8907b3dd-058b-4c28-957f-9948f23b9c1e@nvidia.com>

On Tue, Feb 17, 2026 at 04:15:07PM +0000, Jon Hunter wrote:
> 
> On 17/02/2026 16:04, Russell King (Oracle) wrote:
> > On Tue, Feb 17, 2026 at 03:55:47PM +0000, Jon Hunter wrote:
> > > Hi Russell,
> > > 
> > > Mikko recently posted this fix [0]. Hopefully, this also works?
> > > 
> > > Thanks
> > > Jon
> > > 
> > > [0] https://lore.kernel.org/linux-tegra/20260217-i2c-dpaux-irqsafe-v2-1-635a4c43b1a7@nvidia.com/T/#u
> > 
> > Looks like it probably would do, but I note that it fixes two problems.
> > What happened to "fix one problem with one patch" ?
> > 
> >  From Documentation/process/submitting-patches.rst:
> > 
> >    Solve only one problem per patch.  If your description starts to get
> >    long, that's a sign that you probably need to split up your patch.
> >    See :ref:`split_changes`.
> 
> 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.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

  reply	other threads:[~2026-02-17 16:40 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) [this message]
2026-02-17 16:46         ` Jon Hunter
2026-02-18  1:35           ` Mikko Perttunen
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=aZSZ54oZS9C1Qf1h@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --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=mperttunen@nvidia.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