Skip to contentSkip to conversation

irqchip: qcom: Add sane defaults and drop defconfig

PATCH Applied Krzysztof Kozlowski 3 participants 10 messages Jul 27 – Sep 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover irqchip: qcom: Add sane defaults and drop defconfig

Merging
=======
1. First irqchip patches via irqchip.
2. defconfig next cycle via Qualcomm SoC tree.

Changes in v2:
- Do not restrict MPM to arm64.
- Enable MPM by default only on arm64, because there is no 32-bit
upstream user.
- Link to v1: https://patch.msgid.link/20260727-irqchip-qcom-defaults-v1-0-ed80ad83ca53@oss.qualcomm.com

We should not be really asking whether to enable internal SoC drivers. This is an obvious choice.

And if it does not seem obvious, then consider [1].

[1] https://lore.kernel.org/all/CAHk-%3Dwhigg3hvOy7c1j1MXFy6o6CHp0g4Tc3Y-MAk%[email protected]/

Best regards,
Krzysztof

---
Krzysztof Kozlowski (3):
irqchip/qcom: Enable compile testing for QCOM_PDC and QCOM_MPM irqchip/qcom: Add defaults for desired SoC drivers
arm64: defconfig: Drop redundant Qualcomm irqchip entries

 arch/arm64/configs/defconfig | 2 --
 drivers/irqchip/Kconfig      | 6 ++++--
 2 files changed, 4 insertions(+), 4 deletions(-)

---
base-commit: 9eebf259d5352b87080d67758f483583d9e763d7
change-id: 20260727-irqchip-qcom-defaults-e4ad255d0553

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#1 lore raw

PATCH v2 1/3 irqchip/qcom: Enable compile testing for QCOM_PDC and QCOM_MPM

QCOM_PDC and QCOM_MPM do not reference any architecture code, thus should be compile-testable.

---
 drivers/irqchip/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/Kconfig +2 -2
index 20b77fbc51ee..5a881ddfa3ab 100644
@@ -522,7 +522,7 @@ config GOLDFISH_PIC
 
 config QCOM_PDC
 	tristate "Qualcomm PDC"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	select IRQ_DOMAIN_HIERARCHY
 	help
 	  Power Domain Controller driver to manage and configure wakeup
@@ -530,7 +530,7 @@ config QCOM_PDC
 
 config QCOM_MPM
 	tristate "Qualcomm MPM"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	depends on MAILBOX
 	select IRQ_DOMAIN_HIERARCHY
 	help
Signature · 1 line
2.53.0
#3 lore raw

[tip: irq/drivers] irqchip/qcom: Enable compile testing for QCOM_PDC and QCOM_MPM

In reply to Krzysztof Kozlowski
The following commit has been merged into the irq/drivers branch of tip:

The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     1b852de05f74cfc96c58caad9df4cc1fa2dc7689
Gitweb:        https://git.kernel.org/tip/1b852de05f74cfc96c58caad9df4cc1fa2dc7689
Author:        Krzysztof Kozlowski <[email protected]>
AuthorDate:    Mon, 27 Jul 2026 22:01:20 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Fri, 04 Sep 2026 15:34:33 +02:00

irqchip/qcom: Enable compile testing for QCOM_PDC and QCOM_MPM

QCOM_PDC and QCOM_MPM do not reference any architecture code, thus should be compile-testable.

---
 drivers/irqchip/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/Kconfig +2 -2
index 20b77fb..5a881dd 100644
@@ -522,7 +522,7 @@ config GOLDFISH_PIC
 
 config QCOM_PDC
 	tristate "Qualcomm PDC"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	select IRQ_DOMAIN_HIERARCHY
 	help
 	  Power Domain Controller driver to manage and configure wakeup
@@ -530,7 +530,7 @@ config QCOM_PDC
 
 config QCOM_MPM
 	tristate "Qualcomm MPM"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	depends on MAILBOX
 	select IRQ_DOMAIN_HIERARCHY
 	help
#4 lore raw

PATCH v2 2/3 irqchip/qcom: Add defaults for desired SoC drivers

In reply to Krzysztof Kozlowski

QCOM_PDC and QCOM_MPM are essential for booting up SoCs and are not really optional for a given platform. Kernel should not ask users choice of drivers when that choice is obvious and known to the developers that answer should be 'yes' or 'module'.

Enable these by default whenever a kernel for Qualcomm SoC is built. The change has no impact on arm64 defconfig, but will enable QCOM_PDC for 32-bit ARM multi_v7_defconfig and qcom_defconfig, which is desired because SDX55 uses it.

QCOM_MDM is used by 32-bit Qualcomm SoCs, but there is no in-tree user of it, so it does not have to be enabled by default.

---
 drivers/irqchip/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/irqchip/Kconfig +2 -0
index 5a881ddfa3ab..a8f8c423b795 100644
@@ -524,6 +524,7 @@ config QCOM_PDC
 	tristate "Qualcomm PDC"
 	depends on ARCH_QCOM || COMPILE_TEST
 	select IRQ_DOMAIN_HIERARCHY
+	default ARCH_QCOM
 	help
 	  Power Domain Controller driver to manage and configure wakeup
 	  IRQs for Qualcomm Technologies Inc (QTI) mobile chips.
@@ -533,6 +534,7 @@ config QCOM_MPM
 	depends on ARCH_QCOM || COMPILE_TEST
 	depends on MAILBOX
 	select IRQ_DOMAIN_HIERARCHY
+	default ARCH_QCOM if ARM64
 	help
 	  MSM Power Manager driver to manage and configure wakeup
 	  IRQs for Qualcomm Technologies Inc (QTI) mobile chips.
Signature · 1 line
2.53.0
Reviewed-by on v2 2/3
#5 lore raw

Re: [PATCH v2 2/3] irqchip/qcom: Add defaults for desired SoC drivers

Quoted 11 lines · Krzysztof Kozlowski

QCOM_PDC and QCOM_MPM are essential for booting up SoCs and are not really optional for a given platform. Kernel should not ask users choice of drivers when that choice is obvious and known to the developers that answer should be 'yes' or 'module'.

Enable these by default whenever a kernel for Qualcomm SoC is built. The change has no impact on arm64 defconfig, but will enable QCOM_PDC for 32-bit ARM multi_v7_defconfig and qcom_defconfig, which is desired because SDX55 uses it.

QCOM_MDM is used by 32-bit Qualcomm SoCs, but there is no in-tree user

_MPM

Quoted 4 lines

of it, so it does not have to be enabled by default.

---

Konrad

#6 lore raw

[tip: irq/drivers] irqchip/qcom: Add defaults for desired SoC drivers

In reply to Krzysztof Kozlowski
The following commit has been merged into the irq/drivers branch of tip:

The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     eeb693eb3f4c39e181a8a808f02732feb7b31022
Gitweb:        https://git.kernel.org/tip/eeb693eb3f4c39e181a8a808f02732feb7b31022
Author:        Krzysztof Kozlowski <[email protected]>
AuthorDate:    Mon, 27 Jul 2026 22:01:21 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Fri, 04 Sep 2026 15:34:33 +02:00

irqchip/qcom: Add defaults for desired SoC drivers

QCOM_PDC and QCOM_MPM are essential for booting up SoCs and are not really optional for a given platform. Kernel should not ask users choice of drivers when that choice is obvious and known to the developers that answer should be 'yes' or 'module'.

Enable these by default whenever a kernel for Qualcomm SoC is built. The change has no impact on arm64 defconfig, but will enable QCOM_PDC for 32-bit ARM multi_v7_defconfig and qcom_defconfig, which is desired because SDX55 uses it.

QCOM_MDM is used by 32-bit Qualcomm SoCs, but there is no in-tree user of it, so it does not have to be enabled by default.

---
 drivers/irqchip/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/irqchip/Kconfig +2 -0
index 5a881dd..a8f8c42 100644
@@ -524,6 +524,7 @@ config QCOM_PDC
 	tristate "Qualcomm PDC"
 	depends on ARCH_QCOM || COMPILE_TEST
 	select IRQ_DOMAIN_HIERARCHY
+	default ARCH_QCOM
 	help
 	  Power Domain Controller driver to manage and configure wakeup
 	  IRQs for Qualcomm Technologies Inc (QTI) mobile chips.
@@ -533,6 +534,7 @@ config QCOM_MPM
 	depends on ARCH_QCOM || COMPILE_TEST
 	depends on MAILBOX
 	select IRQ_DOMAIN_HIERARCHY
+	default ARCH_QCOM if ARM64
 	help
 	  MSM Power Manager driver to manage and configure wakeup
 	  IRQs for Qualcomm Technologies Inc (QTI) mobile chips.
#7 lore raw

PATCH v2 3/3 arm64: defconfig: Drop redundant Qualcomm irqchip entries

In reply to Krzysztof Kozlowski

QCOM_PDC and QCOM_MPM are enabled by default.

---

Depends on previous patch - this can wait a cycle and go via Qualcomm SoC tree later.

---
 arch/arm64/configs/defconfig | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/configs/defconfig +0 -2
index 6ec8d3a69c98..978e00891dca 100644
@@ -1743,8 +1743,6 @@ CONFIG_PWM_VISCONTI=m
 CONFIG_PWM_XILINX=m
 CONFIG_SL28CPLD_INTC=y
 CONFIG_XILINX_INTC=y
-CONFIG_QCOM_PDC=y
-CONFIG_QCOM_MPM=y
 CONFIG_TI_SCI_INTR_IRQCHIP=y
 CONFIG_TI_SCI_INTA_IRQCHIP=y
 CONFIG_RESET_GPIO=m
Signature · 1 line
2.53.0
#9 lore raw

[tip: irq/drivers] arm64: defconfig: Drop redundant Qualcomm irqchip entries

In reply to Krzysztof Kozlowski
The following commit has been merged into the irq/drivers branch of tip:

The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     bd94bea7165be450903c6d64bbcb4862e36798f9
Gitweb:        https://git.kernel.org/tip/bd94bea7165be450903c6d64bbcb4862e36798f9
Author:        Krzysztof Kozlowski <[email protected]>
AuthorDate:    Mon, 27 Jul 2026 22:01:22 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Fri, 04 Sep 2026 15:34:34 +02:00

arm64: defconfig: Drop redundant Qualcomm irqchip entries

QCOM_PDC and QCOM_MPM are enabled by default.

---
 arch/arm64/configs/defconfig | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/configs/defconfig +0 -2
index 6ec8d3a..978e008 100644
@@ -1743,8 +1743,6 @@ CONFIG_PWM_VISCONTI=m
 CONFIG_PWM_XILINX=m
 CONFIG_SL28CPLD_INTC=y
 CONFIG_XILINX_INTC=y
-CONFIG_QCOM_PDC=y
-CONFIG_QCOM_MPM=y
 CONFIG_TI_SCI_INTR_IRQCHIP=y
 CONFIG_TI_SCI_INTA_IRQCHIP=y
 CONFIG_RESET_GPIO=m