[PATCH] soc/tegra: make SOC_TEGRA_CBB bool
From: Pengpeng Hou
Date: Thu Dec 03 2026 - 21:01:19 EST
The Tegra CBB option offers a module setting, but its core object is
placed in obj-y and the selected implementations register through
built-in initialization.
Make the option boolean to describe the build that actually exists. This
changes configuration choices, not the hardware error-reporting
protocol.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: b71344221466 ("soc/tegra: cbb: Add CBB 1.0 driver for Tegra194")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
With the ARM64 Tegra194 configuration, a request for SOC_TEGRA_CBB=m
previously resolved to m. With the boolean option its enabled default
resolved to y and an explicit n remained n. This was a Kconfig test
using the kernel dummy cross tools; no target binary was built.
drivers/soc/tegra/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/tegra/Kconfig b/drivers/soc/tegra/Kconfig
index 318e7b60434249a9bb57512a847e3ad0aa7c51ac..74f4ae83e47e87bb7a9e951a1a26a8f340bd4693 100644
--- a/drivers/soc/tegra/Kconfig
+++ b/drivers/soc/tegra/Kconfig
@@ -184,7 +184,7 @@ config SOC_TEGRA30_VOLTAGE_COUPLER
depends on REGULATOR
config SOC_TEGRA_CBB
- tristate "Tegra driver to handle error from CBB"
+ bool "Tegra driver to handle error from CBB"
depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC
default y
help
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106