Skip to contentSkip to conversation

soc: ti: fix irq-ti-sci link error

PATCH In review Arnd Bergmann 5 participants 6 messages Jun 17, 2019 – Jul 2, 2019 TI Keystone multicore navigator drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: ti: fix irq-ti-sci link error

The irqchip driver depends on the SoC specific driver, but we want to be able to compile-test it elsewhere:

WARNING: unmet direct dependencies detected for TI_SCI_INTA_MSI_DOMAIN
Depends on [n]: SOC_TI [=n]
Selected by [y]:
- TI_SCI_INTA_IRQCHIP [=y] && TI_SCI_PROTOCOL [=y]

drivers/irqchip/irq-ti-sci-inta.o: In function `ti_sci_inta_irq_domain_probe':
irq-ti-sci-inta.c:(.text+0x204): undefined reference to `ti_sci_inta_msi_create_irq_domain'

Rearrange the Kconfig and Makefile so we build the soc driver whenever its users are there, regardless of the SOC_TI option.

Fixes 49b323157bf1 ("soc: ti: Add MSI domain bus support for Interrupt Aggregator")
Fixes f011df6179bd ("irqchip/ti-sci-inta: Add msi domain support")
---
 drivers/soc/Makefile   | 2 +-
 drivers/soc/ti/Kconfig | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/soc/Makefile +1 -1
index 524ecdc2a9bb..2ec355003524 100644
@@ -22,7 +22,7 @@ obj-$(CONFIG_ARCH_ROCKCHIP)	+= rockchip/
 obj-$(CONFIG_SOC_SAMSUNG)	+= samsung/
 obj-y				+= sunxi/
 obj-$(CONFIG_ARCH_TEGRA)	+= tegra/
-obj-$(CONFIG_SOC_TI)		+= ti/
+obj-y				+= ti/
 obj-$(CONFIG_ARCH_U8500)	+= ux500/
 obj-$(CONFIG_PLAT_VERSATILE)	+= versatile/
 obj-y				+= xilinx/
drivers/soc/ti/Kconfig +2 -2
index ea0859f7b185..d7d50d48d05d 100644
@@ -75,10 +75,10 @@ config TI_SCI_PM_DOMAINS
 	  called ti_sci_pm_domains. Note this is needed early in boot before
 	  rootfs may be available.
 
+endif # SOC_TI
+
 config TI_SCI_INTA_MSI_DOMAIN
 	bool
 	select GENERIC_MSI_IRQ_DOMAIN
 	help
 	  Driver to enable Interrupt Aggregator specific MSI Domain.
-
-endif # SOC_TI
Signature · 1 line
2.20.0
maintainer
#1 lore raw
Quoted 55 lines · Arnd Bergmann

The irqchip driver depends on the SoC specific driver, but we want to be able to compile-test it elsewhere:

WARNING: unmet direct dependencies detected for TI_SCI_INTA_MSI_DOMAIN
Depends on [n]: SOC_TI [=n]
Selected by [y]:
- TI_SCI_INTA_IRQCHIP [=y] && TI_SCI_PROTOCOL [=y]

drivers/irqchip/irq-ti-sci-inta.o: In function `ti_sci_inta_irq_domain_probe':
irq-ti-sci-inta.c:(.text+0x204): undefined reference to `ti_sci_inta_msi_create_irq_domain'

Rearrange the Kconfig and Makefile so we build the soc driver whenever its users are there, regardless of the SOC_TI option.

Fixes 49b323157bf1 ("soc: ti: Add MSI domain bus support for Interrupt Aggregator")
Fixes f011df6179bd ("irqchip/ti-sci-inta: Add msi domain support")
---
 drivers/soc/Makefile   | 2 +-
 drivers/soc/ti/Kconfig | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/soc/Makefile +1 -1
index 524ecdc2a9bb..2ec355003524 100644
@@ -22,7 +22,7 @@ obj-$(CONFIG_ARCH_ROCKCHIP)	+= rockchip/
 obj-$(CONFIG_SOC_SAMSUNG)	+= samsung/
 obj-y				+= sunxi/
 obj-$(CONFIG_ARCH_TEGRA)	+= tegra/
-obj-$(CONFIG_SOC_TI)		+= ti/
+obj-y				+= ti/
 obj-$(CONFIG_ARCH_U8500)	+= ux500/
 obj-$(CONFIG_PLAT_VERSATILE)	+= versatile/
 obj-y				+= xilinx/
drivers/soc/ti/Kconfig +2 -2
index ea0859f7b185..d7d50d48d05d 100644
@@ -75,10 +75,10 @@ config TI_SCI_PM_DOMAINS
 	  called ti_sci_pm_domains. Note this is needed early in boot before
 	  rootfs may be available.
 
+endif # SOC_TI
+
 config TI_SCI_INTA_MSI_DOMAIN
 	bool
 	select GENERIC_MSI_IRQ_DOMAIN
 	help
 	  Driver to enable Interrupt Aggregator specific MSI Domain.
-
-endif # SOC_TI
Signature · 1 line
2.20.0

Looks fine to me. Lokesh?

Signature · 7 lines
Regards,
Nishanth Menon

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Reviewed-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 11 lines · Arnd Bergmann

The irqchip driver depends on the SoC specific driver, but we want to be able to compile-test it elsewhere:

WARNING: unmet direct dependencies detected for TI_SCI_INTA_MSI_DOMAIN
Depends on [n]: SOC_TI [=n]
Selected by [y]:
- TI_SCI_INTA_IRQCHIP [=y] && TI_SCI_PROTOCOL [=y]

drivers/irqchip/irq-ti-sci-inta.o: In function `ti_sci_inta_irq_domain_probe':
irq-ti-sci-inta.c:(.text+0x204): undefined reference to `ti_sci_inta_msi_create_irq_domain'

Quoted 6 lines

Rearrange the Kconfig and Makefile so we build the soc driver whenever its users are there, regardless of the SOC_TI option.

Fixes 49b323157bf1 ("soc: ti: Add MSI domain bus support for Interrupt Aggregator")
Fixes f011df6179bd ("irqchip/ti-sci-inta: Add msi domain support")

Looks like this is a side effect of the patch a6b112b04355b ("arm64: arch_k3:
Fix kconfig dependency warning"). $Patch looks good to me.

Thanks and regards,
Lokesh

Quoted 36 lines
---
 drivers/soc/Makefile   | 2 +-
 drivers/soc/ti/Kconfig | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/soc/Makefile +1 -1
index 524ecdc2a9bb..2ec355003524 100644
@@ -22,7 +22,7 @@ obj-$(CONFIG_ARCH_ROCKCHIP)	+= rockchip/
 obj-$(CONFIG_SOC_SAMSUNG)	+= samsung/
 obj-y				+= sunxi/
 obj-$(CONFIG_ARCH_TEGRA)	+= tegra/
-obj-$(CONFIG_SOC_TI)		+= ti/
+obj-y				+= ti/
 obj-$(CONFIG_ARCH_U8500)	+= ux500/
 obj-$(CONFIG_PLAT_VERSATILE)	+= versatile/
 obj-y				+= xilinx/
drivers/soc/ti/Kconfig +2 -2
index ea0859f7b185..d7d50d48d05d 100644
@@ -75,10 +75,10 @@ config TI_SCI_PM_DOMAINS
 	  called ti_sci_pm_domains. Note this is needed early in boot before
 	  rootfs may be available.
 
+endif # SOC_TI
+
 config TI_SCI_INTA_MSI_DOMAIN
 	bool
 	select GENERIC_MSI_IRQ_DOMAIN
 	help
 	  Driver to enable Interrupt Aggregator specific MSI Domain.
-
-endif # SOC_TI
#3 lore raw
In reply to Arnd Bergmann
Quoted 11 lines · Arnd Bergmann

The irqchip driver depends on the SoC specific driver, but we want to be able to compile-test it elsewhere:

WARNING: unmet direct dependencies detected for TI_SCI_INTA_MSI_DOMAIN
Depends on [n]: SOC_TI [=n]
Selected by [y]:
- TI_SCI_INTA_IRQCHIP [=y] && TI_SCI_PROTOCOL [=y]

drivers/irqchip/irq-ti-sci-inta.o: In function `ti_sci_inta_irq_domain_probe':
irq-ti-sci-inta.c:(.text+0x204): undefined reference to `ti_sci_inta_msi_create_irq_domain'

Quoted 7 lines

Rearrange the Kconfig and Makefile so we build the soc driver whenever its users are there, regardless of the SOC_TI option.

Fixes 49b323157bf1 ("soc: ti: Add MSI domain bus support for Interrupt Aggregator")
Fixes f011df6179bd ("irqchip/ti-sci-inta: Add msi domain support")

---

Thanks Arnd. Will you be able to add it to your fixes queue.

FWIW, Acked-by: Santosh Shilimkar <[email protected]>

#4 lore raw
Quoted 16 lines · On Mon, Jul 1, 2019 at 10:36 AM <[email protected]> wrote:
Quoted 14 lines · Arnd Bergmann

The irqchip driver depends on the SoC specific driver, but we want to be able to compile-test it elsewhere:

WARNING: unmet direct dependencies detected for TI_SCI_INTA_MSI_DOMAIN
Depends on [n]: SOC_TI [=n]
Selected by [y]:
- TI_SCI_INTA_IRQCHIP [=y] && TI_SCI_PROTOCOL [=y]

drivers/irqchip/irq-ti-sci-inta.o: In function `ti_sci_inta_irq_domain_probe':
irq-ti-sci-inta.c:(.text+0x204): undefined reference to `ti_sci_inta_msi_create_irq_domain'

Rearrange the Kconfig and Makefile so we build the soc driver whenever its users are there, regardless of the SOC_TI option.

Quoted 7 lines
Quoted 4 lines
Fixes 49b323157bf1 ("soc: ti: Add MSI domain bus support for Interrupt Aggregator")
Fixes f011df6179bd ("irqchip/ti-sci-inta: Add msi domain support")

---

Thanks Arnd. Will you be able to add it to your fixes queue.

FWIW, Acked-by: Santosh Shilimkar <[email protected]>

Cc ing to [email protected] is the best way to make sure it surfaces.

Also, please do Acked-by on separate line so the tools catch it next time (also, check for typos. :)

Applying to fixes.

-Olof

#5 lore raw
Quoted 21 lines · Olof Johansson
Quoted 20 lines · On Mon, Jul 1, 2019 at 10:36 AM <[email protected]> wrote:
Quoted 18 lines · Arnd Bergmann

The irqchip driver depends on the SoC specific driver, but we want to be able to compile-test it elsewhere:

WARNING: unmet direct dependencies detected for TI_SCI_INTA_MSI_DOMAIN
Depends on [n]: SOC_TI [=n]
Selected by [y]:
- TI_SCI_INTA_IRQCHIP [=y] && TI_SCI_PROTOCOL [=y]

drivers/irqchip/irq-ti-sci-inta.o: In function `ti_sci_inta_irq_domain_probe':
irq-ti-sci-inta.c:(.text+0x204): undefined reference to `ti_sci_inta_msi_create_irq_domain'

Rearrange the Kconfig and Makefile so we build the soc driver whenever its users are there, regardless of the SOC_TI option.

Fixes 49b323157bf1 ("soc: ti: Add MSI domain bus support for Interrupt Aggregator")
Fixes f011df6179bd ("irqchip/ti-sci-inta: Add msi domain support")

---

Quoted 7 lines
Quoted 3 lines

Thanks Arnd. Will you be able to add it to your fixes queue.

FWIW, Acked-by: Santosh Shilimkar <[email protected]>

Cc ing to [email protected] is the best way to make sure it surfaces.

Also, please do Acked-by on separate line so the tools catch it next

Will do..

Quoted 2 lines

time (also, check for typos. :)

:- )

Quoted 1 line

Applying to fixes.

Thanks for picking it up.