Skip to contentSkip to conversation

ASoC: cs47l15: Ensure regmap_irq is built

PATCH In review Mark Brown 2 participants 3 messages Feb 2, 2022 – Feb 3, 2022

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: cs47l15: Ensure regmap_irq is built

The cs47l15 driver uses regmap_irq but does not ensure that it is built, causing build failures if nothing else being build requires the helpers. Add the appropriate select.

---
 sound/soc/codecs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/Kconfig +1 -0
index 2fd21004688c..69fd11b2b046 100644
@@ -733,6 +733,7 @@ config SND_SOC_CS4349
 
 config SND_SOC_CS47L15
 	tristate
+	select REGMAP_IRQ
 
 config SND_SOC_CS47L24
 	tristate
Signature · 1 line
2.30.2
#1 lore raw
Quoted 14 lines · Mark Brown

The cs47l15 driver uses regmap_irq but does not ensure that it is built, causing build failures if nothing else being build requires the helpers. Add the appropriate select.

---
 sound/soc/codecs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/Kconfig +0 -0
index 2fd21004688c..69fd11b2b046 100644

sound/soc/codecs/Kconfig config SND_SOC_CS4349 · line 737

Quoted 5 lines
sound/soc/codecs/Kconfig +1 -0
@@ -733,6 +733,7 @@ config SND_SOC_CS4349
 
 config SND_SOC_CS47L15
 	tristate
+	select REGMAP_IRQ
 

Would it be better to have depends on MFD_CS47L15 instead, that way the other dependencies would be covered as well? I think these were added before implies was a thing, and thus dependencies didn't matter, since they could only be selected which ignored deps anyway.

I would expect L35, L85, L90, L92 to be affected as well. Happy to do a patch to fix this up, if you prefer?

Thanks,
Charles

author maintainer
#2 lore raw
Quoted 9 lines · Charles Keepax

sound/soc/codecs/Kconfig config SND_SOC_CS4349 · line 736

Quoted 3 lines

config SND_SOC_CS47L15

sound/soc/codecs/Kconfig +1 -0
 	tristate
+	select REGMAP_IRQ

Would it be better to have depends on MFD_CS47L15 instead, that way the other dependencies would be covered as well? I think these were added before implies was a thing, and thus dependencies didn't matter, since they could only be selected which ignored deps anyway.

It doesn't actually have a dependency at the ASoC level so it doesn't super matter. Given that it's this driver that's using the IRQ controller it needs the select it would probably be better to have that set up in the MFD anyway.

Quoted 2 lines

I would expect L35, L85, L90, L92 to be affected as well. Happy to do a patch to fix this up, if you prefer?

I don't mind either way, it's not causing problems to have the dependency missing.