From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Linus Walleij <linusw@kernel.org>
Cc: Areeb Ul Haq Mirza <auhmirza02@gmail.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
Andy Shevchenko <andy@kernel.org>
Subject: Re: [PATCH] pinctrl: keembay: make keembay_gpio_irqchip const
Date: Thu, 5 Nov 2026 11:28:10 +0200 [thread overview]
Message-ID: <auxMKvFI9GCjPabA@ashevche-desk.local> (raw)
In-Reply-To: <CAD++jLne9FgabDUWoirYejnnNfm4GD5zh-E-b_vUGoiwH=CgpQ@mail.gmail.com>
On Thu, Nov 05, 2026 at 10:14:07AM +0100, Linus Walleij wrote:
> On Tue, Nov 3, 2026 at 8:50 PM Areeb Ul Haq Mirza <auhmirza02@gmail.com> wrote:
>
> > gpiolib warns about mutable irq_chips at probe time:
> > "not an immutable chip, please consider fixing it!"
> >
> > Make keembay_gpio_irqchip const, flag it as IRQCHIP_IMMUTABLE, add the
> > GPIOCHIP_IRQ_RESOURCE_HELPERS and register it with
> > gpio_irq_chip_set_chip().
> >
> > The chip only implements .irq_enable() and .irq_disable(), so call
> > gpiochip_enable_irq() and gpiochip_disable_irq() from those callbacks,
> > following commit 35d008679a5a ("pinctrl: plgpio: Convert to immutable
> > irq_chip") [1] and commit 2993d2dd8ff4 ("gpio: timberdale: Make irq_chip
> > immutable") [2]. gpiochip_enable_irq() is called once a free interrupt
> > source and slot have been found, so a line is only marked enabled when
> > it is actually routed. gpiochip_disable_irq() is called after the line
> > has been cleared from the interrupt configuration register.
> >
> > Link: https://lore.kernel.org/r/20230414-immutable-irqchips-2-v1-3-6b59a5186b00@linaro.org [1]
> > Link: https://lore.kernel.org/r/20250509-gpio-v1-8-639377c98288@nxp.com [2]
> > Signed-off-by: Areeb Ul Haq Mirza <auhmirza02@gmail.com>
>
> Driver is marked as orphan so I just applied the patch.
>
> Cc to Andy if he wants to pick up maintenance for this one, but I doubt
> it (not x86, right?)
No, it's ARM. And IIRC (I may be mistaken) it was designed somewhere
close to mobileye, for some automotive related use cases. So, if ask,
try to ask mobileye people if they are willing to take it.
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2026-11-05 9:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 21:25 Areeb Ul Haq Mirza
2026-11-05 9:14 ` Linus Walleij
2026-11-05 9:28 ` Andy Shevchenko [this message]
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=auxMKvFI9GCjPabA@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=auhmirza02@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®