From: "Michael Walle" <mwalle@kernel.org>
To: "Andy Shevchenko" <andriy.shevchenko@linux.intel.com>
Cc: "William Breathitt Gray" <wbg@kernel.org>,
"Linus Walleij" <linusw@kernel.org>,
"Bartosz Golaszewski" <brgl@kernel.org>,
"Petar Stepanovic" <pstepanovic@axiado.com>,
"SriNavmani A" <srinavmani@axiado.com>,
"Prasad Bolisetty" <pbolisetty@axiado.com>,
"Tzu-Hao Wei" <twei@axiado.com>,
"Karthikeyan Mitran" <kmitran@axiado.com>,
"Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>,
"Lee Jones" <lee@kernel.org>,
"Long Zhao" <longzhao@ambarella.com>,
"Joseph Telaak" <joseph@telaak.dev>, <linux-gpio@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [RFT PATCH 06/13] gpio: max7360: create the regmap-irq chip from the gpio-regmap callback
Date: Fri, 27 Nov 2026 09:59:45 +0100 [thread overview]
Message-ID: <DN5VBYNBOJ72.1AB3PNDNJZF2M@kernel.org> (raw)
In-Reply-To: <awiaDVcNkqjaRL6S@ashevche-desk.local>
[-- Attachment #1: Type: text/plain, Size: 832 bytes --]
On Thu Nov 26, 2026 at 9:43 PM CET, Andy Shevchenko wrote:
> On Thu, Nov 26, 2026 at 04:35:17PM +0100, Michael Walle wrote:
>> Use the new gpio_regmap_add_irq_chip() helper to create the regmap-irq
>> domain.
>
> ...
>
>> +struct max7360_gpio {
>> + struct device *dev;
>> + struct regmap *regmap;
>> +};
>
> Why do we need both? Is regmap created with difference 'dev'?
Because the regmap is fetched from the parent, i.e the MFD. But the
callback still needs the GPIO device for allocations.
I wanted to keep the change as simple as possible and just moved the
whole init section over. But it's even simpler to just set up
everything in probe and then just call gpio_regmap_add_irq_chip() in
the callback, though that brings more fields to struct max7360. But
it makes the code a nicer example.
-michael
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 297 bytes --]
next prev parent reply other threads:[~2026-11-27 8:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 15:35 [RFT PATCH 00/13] gpio: regmap: IRQ domain cleanups Michael Walle
2026-11-26 15:35 ` [RFT PATCH 01/13] gpio: regmap: remove gpiochip before tearing down irqchip Michael Walle
2026-11-26 15:35 ` [RFT PATCH 02/13] gpio: regmap: add a callback to create the IRQ domain Michael Walle
2026-11-26 15:47 ` sashiko-bot
2026-11-26 21:52 ` Joseph Telaak
2026-11-26 15:35 ` [RFT PATCH 03/13] gpio: rtd1625: create the IRQ domain from the gpio-regmap callback Michael Walle
2026-11-26 15:54 ` sashiko-bot
2026-11-26 15:35 ` [RFT PATCH 04/13] gpio: axiado-sgpio: " Michael Walle
2026-11-26 15:35 ` [RFT PATCH 05/13] gpio: regmap: add a helper to add a regmap-irq chip Michael Walle
2026-11-26 15:35 ` [RFT PATCH 06/13] gpio: max7360: create the regmap-irq chip from the gpio-regmap callback Michael Walle
2026-11-26 20:43 ` Andy Shevchenko
2026-11-27 8:59 ` Michael Walle [this message]
2026-11-26 15:35 ` [RFT PATCH 07/13] gpio: sl28cpld: " Michael Walle
2026-11-26 15:35 ` [RFT PATCH 08/13] gpio: idio-16: " Michael Walle
2026-11-26 15:35 ` [RFT PATCH 09/13] gpio: pcie-idio-24: " Michael Walle
2026-11-26 15:48 ` sashiko-bot
2026-11-27 9:03 ` Michael Walle
2026-11-26 15:35 ` [RFT PATCH 10/13] gpio: ws16c48: " Michael Walle
2026-11-26 15:35 ` [RFT PATCH 11/13] gpio: 104-idi-48: " Michael Walle
2026-11-26 15:48 ` sashiko-bot
2026-11-26 15:35 ` [RFT PATCH 12/13] gpio: i8255: " Michael Walle
2026-11-26 15:35 ` [RFT PATCH 13/13] gpio: regmap: remove irq_domain and the regmap-irq configuration Michael Walle
2026-11-26 21:52 ` Joseph Telaak
2026-11-26 20:48 ` [RFT PATCH 00/13] gpio: regmap: IRQ domain cleanups Andy Shevchenko
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=DN5VBYNBOJ72.1AB3PNDNJZF2M@kernel.org \
--to=mwalle@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=brgl@kernel.org \
--cc=joseph@telaak.dev \
--cc=kmitran@axiado.com \
--cc=lee@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=longzhao@ambarella.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=pbolisetty@axiado.com \
--cc=pstepanovic@axiado.com \
--cc=srinavmani@axiado.com \
--cc=twei@axiado.com \
--cc=wbg@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