linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM
@ 2026-08-06 10:35 Geert Uytterhoeven
  2026-08-17  8:56 ` Konrad Dybcio
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2026-08-06 10:35 UTC (permalink / raw)
  To: Sumit Garg, Bjorn Andersson, Konrad Dybcio, Johannes Berg,
	Arnd Bergmann, Krzysztof Kozlowski, Alexandre Belloni,
	Linus Walleij
  Cc: linux-arm-msm, linux-wireless, linux-arm-kernel, linux-kernel,
	Geert Uytterhoeven

The various Qualcomm firmware interfaces are only present on Qualcomm
systems.  Hence add dependencies on ARCH_QCOM, to prevent asking the
user about them when configuring a kernel without Qualcomm SoC support.
Make QCOM_PAS invisible instead, as it is already selected by its users
when needed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
I wondered whether QCOM_SCM should be made invisible, too, as it seems
to be selected by its users? But apparently commit 5c1a2975d23c51c0
("firmware: qcom_scm: Migrate to generic PAS service") in net-next/main
and soc/for-next made it visible on purpose?
---
 drivers/firmware/qcom/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/firmware/qcom/Kconfig b/drivers/firmware/qcom/Kconfig
index c7f8413ab996cf12..691db0ded8e8cf63 100644
--- a/drivers/firmware/qcom/Kconfig
+++ b/drivers/firmware/qcom/Kconfig
@@ -7,7 +7,7 @@
 menu "Qualcomm firmware drivers"
 
 config QCOM_PAS
-	tristate "Qualcomm generic PAS interface driver"
+	tristate "Qualcomm generic PAS interface driver" if COMPILE_TEST
 	help
 	  Enable the generic Peripheral Authentication Service (PAS) provided
 	  by the firmware. It acts as the common layer with different TZ
@@ -16,6 +16,7 @@ config QCOM_PAS
 
 config QCOM_PAS_TEE
 	tristate "Qualcomm PAS TEE interface driver"
+	depends on ARCH_QCOM || COMPILE_TEST
 	select QCOM_PAS
 	depends on TEE
 	depends on !CPU_BIG_ENDIAN
@@ -26,6 +27,7 @@ config QCOM_PAS_TEE
 
 config QCOM_SCM
 	tristate "Qualcomm PAS SCM interface driver"
+	depends on ARCH_QCOM || COMPILE_TEST
 	select QCOM_PAS
 	select QCOM_TZMEM
 	default y if ARCH_QCOM
-- 
2.43.0



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

* Re: [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM
  2026-08-06 10:35 [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM Geert Uytterhoeven
@ 2026-08-17  8:56 ` Konrad Dybcio
  2026-08-17  8:57 ` Konrad Dybcio
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-08-17  8:56 UTC (permalink / raw)
  To: Geert Uytterhoeven, Sumit Garg, Bjorn Andersson, Konrad Dybcio,
	Johannes Berg, Arnd Bergmann, Krzysztof Kozlowski,
	Alexandre Belloni, Linus Walleij
  Cc: linux-arm-msm, linux-wireless, linux-arm-kernel, linux-kernel

On 8/6/26 12:35 PM, Geert Uytterhoeven wrote:
> The various Qualcomm firmware interfaces are only present on Qualcomm
> systems.  Hence add dependencies on ARCH_QCOM, to prevent asking the
> user about them when configuring a kernel without Qualcomm SoC support.
> Make QCOM_PAS invisible instead, as it is already selected by its users
> when needed.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> I wondered whether QCOM_SCM should be made invisible, too, as it seems
> to be selected by its users? But apparently commit 5c1a2975d23c51c0
> ("firmware: qcom_scm: Migrate to generic PAS service") in net-next/main
> and soc/for-next made it visible on purpose?

For some context, that commit was part of a series that introduced a
second back-end to the functions that previously only the QCOM_SCM
driver provided ("qcom proprietary TZ interface" vs "what TF-A is
going to provide"), and the author's intention was to make the
former possible to disable

Konrad


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

* Re: [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM
  2026-08-06 10:35 [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM Geert Uytterhoeven
  2026-08-17  8:56 ` Konrad Dybcio
@ 2026-08-17  8:57 ` Konrad Dybcio
  2026-09-10  6:56 ` Sumit Garg
  2026-09-11  2:25 ` Bjorn Andersson
  3 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-08-17  8:57 UTC (permalink / raw)
  To: Geert Uytterhoeven, Sumit Garg, Bjorn Andersson, Konrad Dybcio,
	Johannes Berg, Arnd Bergmann, Krzysztof Kozlowski,
	Alexandre Belloni, Linus Walleij
  Cc: linux-arm-msm, linux-wireless, linux-arm-kernel, linux-kernel

On 8/6/26 12:35 PM, Geert Uytterhoeven wrote:
> The various Qualcomm firmware interfaces are only present on Qualcomm
> systems.  Hence add dependencies on ARCH_QCOM, to prevent asking the
> user about them when configuring a kernel without Qualcomm SoC support.
> Make QCOM_PAS invisible instead, as it is already selected by its users
> when needed.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---

Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad


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

* Re: [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM
  2026-08-06 10:35 [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM Geert Uytterhoeven
  2026-08-17  8:56 ` Konrad Dybcio
  2026-08-17  8:57 ` Konrad Dybcio
@ 2026-09-10  6:56 ` Sumit Garg
  2026-09-11  2:25 ` Bjorn Andersson
  3 siblings, 0 replies; 5+ messages in thread
From: Sumit Garg @ 2026-09-10  6:56 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Bjorn Andersson, Konrad Dybcio, Johannes Berg, Arnd Bergmann,
	Krzysztof Kozlowski, Alexandre Belloni, Linus Walleij,
	linux-arm-msm, linux-wireless, linux-arm-kernel, linux-kernel

On Thu, Aug 6, 2026 at 4:05 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
>
> The various Qualcomm firmware interfaces are only present on Qualcomm
> systems.  Hence add dependencies on ARCH_QCOM, to prevent asking the
> user about them when configuring a kernel without Qualcomm SoC support.
> Make QCOM_PAS invisible instead, as it is already selected by its users
> when needed.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> I wondered whether QCOM_SCM should be made invisible, too, as it seems
> to be selected by its users? But apparently commit 5c1a2975d23c51c0
> ("firmware: qcom_scm: Migrate to generic PAS service") in net-next/main
> and soc/for-next made it visible on purpose?
> ---
>  drivers/firmware/qcom/Kconfig | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>

-Sumit

> diff --git a/drivers/firmware/qcom/Kconfig b/drivers/firmware/qcom/Kconfig
> index c7f8413ab996cf12..691db0ded8e8cf63 100644
> --- a/drivers/firmware/qcom/Kconfig
> +++ b/drivers/firmware/qcom/Kconfig
> @@ -7,7 +7,7 @@
>  menu "Qualcomm firmware drivers"
>
>  config QCOM_PAS
> -       tristate "Qualcomm generic PAS interface driver"
> +       tristate "Qualcomm generic PAS interface driver" if COMPILE_TEST
>         help
>           Enable the generic Peripheral Authentication Service (PAS) provided
>           by the firmware. It acts as the common layer with different TZ
> @@ -16,6 +16,7 @@ config QCOM_PAS
>
>  config QCOM_PAS_TEE
>         tristate "Qualcomm PAS TEE interface driver"
> +       depends on ARCH_QCOM || COMPILE_TEST
>         select QCOM_PAS
>         depends on TEE
>         depends on !CPU_BIG_ENDIAN
> @@ -26,6 +27,7 @@ config QCOM_PAS_TEE
>
>  config QCOM_SCM
>         tristate "Qualcomm PAS SCM interface driver"
> +       depends on ARCH_QCOM || COMPILE_TEST
>         select QCOM_PAS
>         select QCOM_TZMEM
>         default y if ARCH_QCOM
> --
> 2.43.0
>


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

* Re: [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM
  2026-08-06 10:35 [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM Geert Uytterhoeven
                   ` (2 preceding siblings ...)
  2026-09-10  6:56 ` Sumit Garg
@ 2026-09-11  2:25 ` Bjorn Andersson
  3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2026-09-11  2:25 UTC (permalink / raw)
  To: Sumit Garg, Konrad Dybcio, Johannes Berg, Arnd Bergmann,
	Krzysztof Kozlowski, Alexandre Belloni, Linus Walleij,
	Geert Uytterhoeven
  Cc: linux-arm-msm, linux-wireless, linux-arm-kernel, linux-kernel


On Thu, 06 Aug 2026 12:35:15 +0200, Geert Uytterhoeven wrote:
> The various Qualcomm firmware interfaces are only present on Qualcomm
> systems.  Hence add dependencies on ARCH_QCOM, to prevent asking the
> user about them when configuring a kernel without Qualcomm SoC support.
> Make QCOM_PAS invisible instead, as it is already selected by its users
> when needed.
> 
> 
> [...]

Applied, thanks!

[1/1] firmware: QCOM interfaces should depend on ARCH_QCOM
      commit: 8fecd3194de338bdc0c57597be61fdcf33e1832d

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>


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

end of thread, other threads:[~2026-09-11  2:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06 10:35 [PATCH] firmware: QCOM interfaces should depend on ARCH_QCOM Geert Uytterhoeven
2026-08-17  8:56 ` Konrad Dybcio
2026-08-17  8:57 ` Konrad Dybcio
2026-09-10  6:56 ` Sumit Garg
2026-09-11  2:25 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).