mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: mt6363: select CONFIG_IRQ_DOMAIN
@ 2026-05-26 10:19 Arnd Bergmann
  2026-05-26 10:24 ` AngeloGioacchino Del Regno
  2026-05-26 14:17 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2026-05-26 10:19 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, AngeloGioacchino Del Regno
  Cc: Arnd Bergmann, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

When build-testing this driver without CONFIG_IRQ_DOMAIN causes
a compile-time error:

drivers/regulator/mt6363-regulator.c: In function 'mt6363_regulator_probe':
drivers/regulator/mt6363-regulator.c:884:18: error: implicit declaration of function 'irq_find_host' [-Wimplicit-function-declaration]
  884 |         domain = irq_find_host(interrupt_parent);
      |                  ^~~~~~~~~~~~~
drivers/regulator/mt6363-regulator.c:884:16: error: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  884 |         domain = irq_find_host(interrupt_parent);
      |                ^
drivers/regulator/mt6363-regulator.c:896:30: error: implicit declaration of function 'irq_create_fwspec_mapping'; did you mean 'irq_create_of_mapping'? [-Wimplicit-function-declaration]
  896 |                 info->virq = irq_create_fwspec_mapping(&fwspec);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                              irq_create_of_mapping

This is rather hard to trigger because so many other drivers
enable IRQ_DOMAIN already, but I ran into this on an s390
randconfig build.

Ensure this is always enabled using a Kconfig 'select IRQ_DOMAIN'
entry, as we do for all other users of this.

Fixes: 3c36965df808 ("regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/regulator/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index dccb72efe8ec..2c7cdc8dca36 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -979,6 +979,7 @@ config REGULATOR_MT6363
 	tristate "MT6363 SPMI PMIC regulator driver"
 	depends on SPMI
 	select REGMAP_SPMI
+	select IRQ_DOMAIN
 	help
 	  Say Y here to enable support for regulators found in the MediaTek
 	  MT6363 SPMI PMIC.
-- 
2.39.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] regulator: mt6363: select CONFIG_IRQ_DOMAIN
  2026-05-26 10:19 [PATCH] regulator: mt6363: select CONFIG_IRQ_DOMAIN Arnd Bergmann
@ 2026-05-26 10:24 ` AngeloGioacchino Del Regno
  2026-05-26 14:17 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2026-05-26 10:24 UTC (permalink / raw)
  To: Arnd Bergmann, Liam Girdwood, Mark Brown; +Cc: Arnd Bergmann, linux-kernel

On 5/26/26 12:19, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> When build-testing this driver without CONFIG_IRQ_DOMAIN causes
> a compile-time error:
> 
> drivers/regulator/mt6363-regulator.c: In function 'mt6363_regulator_probe':
> drivers/regulator/mt6363-regulator.c:884:18: error: implicit declaration of function 'irq_find_host' [-Wimplicit-function-declaration]
>    884 |         domain = irq_find_host(interrupt_parent);
>        |                  ^~~~~~~~~~~~~
> drivers/regulator/mt6363-regulator.c:884:16: error: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
>    884 |         domain = irq_find_host(interrupt_parent);
>        |                ^
> drivers/regulator/mt6363-regulator.c:896:30: error: implicit declaration of function 'irq_create_fwspec_mapping'; did you mean 'irq_create_of_mapping'? [-Wimplicit-function-declaration]
>    896 |                 info->virq = irq_create_fwspec_mapping(&fwspec);
>        |                              ^~~~~~~~~~~~~~~~~~~~~~~~~
>        |                              irq_create_of_mapping
> 
> This is rather hard to trigger because so many other drivers
> enable IRQ_DOMAIN already, but I ran into this on an s390
> randconfig build.
> 
> Ensure this is always enabled using a Kconfig 'select IRQ_DOMAIN'
> entry, as we do for all other users of this.
> 
> Fixes: 3c36965df808 ("regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] regulator: mt6363: select CONFIG_IRQ_DOMAIN
  2026-05-26 10:19 [PATCH] regulator: mt6363: select CONFIG_IRQ_DOMAIN Arnd Bergmann
  2026-05-26 10:24 ` AngeloGioacchino Del Regno
@ 2026-05-26 14:17 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-05-26 14:17 UTC (permalink / raw)
  To: Liam Girdwood, AngeloGioacchino Del Regno, Arnd Bergmann
  Cc: Arnd Bergmann, linux-kernel

On Tue, 26 May 2026 12:19:37 +0200, Arnd Bergmann wrote:
> regulator: mt6363: select CONFIG_IRQ_DOMAIN

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-7.1

Thanks!

[1/1] regulator: mt6363: select CONFIG_IRQ_DOMAIN
      https://git.kernel.org/broonie/regulator/c/29d87434cb91

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-26 18:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-26 10:19 [PATCH] regulator: mt6363: select CONFIG_IRQ_DOMAIN Arnd Bergmann
2026-05-26 10:24 ` AngeloGioacchino Del Regno
2026-05-26 14:17 ` Mark Brown

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®