* [PATCH] iio: adc: ab8500-gpadc: depend on IIO=y
@ 2026-12-04 1:59 Pengpeng Hou
2026-12-04 16:57 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-12-04 1:59 UTC (permalink / raw)
To: Jonathan Cameron
Cc: David Lechner, Nuno Sá,
Andy Shevchenko, linux-iio, linux-kernel, Pengpeng Hou,
Linus Walleij, linux-arm-kernel
AB8500_GPADC selects a built-in platform driver, but can be enabled when
IIO=m. In that configuration the parent directory is entered for modules
and the selected ADC object is not built in.
Require a built-in IIO core, keeping the AB8500 and regulator
dependencies intact.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 07063bbfa98e ("iio: adc: New driver for the AB8500 GPADC")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
Starting from the ARM u8500 defconfig, GPADC was selectable with IIO=m
before the change but not afterwards. IIO=y still allowed GPADC. This
was a Kconfig test using the kernel dummy cross tools; no target binary
was built.
drivers/iio/adc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index a802d8ee4dd9cd7ddeea0d109b21a4bdd6435464..a0b7e27913d6fbbeeac18e7f7d9e65be5ddf3ce4 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -24,7 +24,7 @@ config 88PM886_GPADC
config AB8500_GPADC
bool "ST-Ericsson AB8500 GPADC driver"
- depends on AB8500_CORE && REGULATOR_AB8500
+ depends on IIO=y && AB8500_CORE && REGULATOR_AB8500
default y
help
AB8500 Analog Baseband, mixed signal integrated circuit GPADC
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: adc: ab8500-gpadc: depend on IIO=y
2026-12-04 1:59 [PATCH] iio: adc: ab8500-gpadc: depend on IIO=y Pengpeng Hou
@ 2026-12-04 16:57 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2026-12-04 16:57 UTC (permalink / raw)
To: Pengpeng Hou
Cc: Jonathan Cameron, David Lechner, Nuno Sá,
Andy Shevchenko, linux-iio, linux-kernel, Linus Walleij,
linux-arm-kernel
On Fri, Dec 04, 2026 at 09:59:53AM +0800, Pengpeng Hou wrote:
> AB8500_GPADC selects a built-in platform driver, but can be enabled when
> IIO=m. In that configuration the parent directory is entered for modules
> and the selected ADC object is not built in.
>
> Require a built-in IIO core, keeping the AB8500 and regulator
> dependencies intact.
>
> The issue was found by our static-analysis tool and manually reviewed.
...
> config AB8500_GPADC
> bool "ST-Ericsson AB8500 GPADC driver"
> - depends on AB8500_CORE && REGULATOR_AB8500
> + depends on IIO=y && AB8500_CORE && REGULATOR_AB8500
> default y
Why not
default y if IIO=y
?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-04 16:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04 1:59 [PATCH] iio: adc: ab8500-gpadc: depend on IIO=y Pengpeng Hou
2026-12-04 16:57 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®