drivers/pwm/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
The driver fails to build on configurations lacking COMMON_CLK (missing
clk::Clk) or HAS_IOMEM (incomplete `pwm_chip` struct on UML).
Add dependencies on ARCH_THEAD and HAS_IOMEM, and add COMMON_CLK to
ensure correct compilation and platform targeting.
Reported-by: Markus Probst <markus.probst@gmail.com>
Closes: https://lore.kernel.org/all/a66b337528d700ae92d7940a04c59206e06a8495.camel@posteo.de/
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512020957.PqnHfe7C-lkp@intel.com/
Fixes: e03724aac758 ("pwm: Add Rust driver for T-HEAD TH1520 SoC")
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
---
drivers/pwm/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index bf2d101f67a1e0ae12a58b5630abd5cfd77ccc99..6f3147518376a04b6e890c4bf31e06e1af04054e 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -760,7 +760,9 @@ config PWM_TEGRA
config PWM_TH1520
tristate "TH1520 PWM support"
+ depends on ARCH_THEAD || COMPILE_TEST
depends on RUST
+ depends on HAS_IOMEM && COMMON_CLK
select RUST_PWM_ABSTRACTIONS
help
This option enables the driver for the PWM controller found on the
---
base-commit: cb015814f8b6eebcbb8e46e111d108892c5e6821
change-id: 20251209-fix_deps_pwm-d3163711916c
Best regards,
--
Michal Wilczynski <m.wilczynski@samsung.com>
Hello,
On Tue, Dec 09, 2025 at 09:06:03PM +0100, Michal Wilczynski wrote:
> The driver fails to build on configurations lacking COMMON_CLK (missing
> clk::Clk) or HAS_IOMEM (incomplete `pwm_chip` struct on UML).
>
> Add dependencies on ARCH_THEAD and HAS_IOMEM, and add COMMON_CLK to
> ensure correct compilation and platform targeting.
>
> Reported-by: Markus Probst <markus.probst@gmail.com>
> Closes: https://lore.kernel.org/all/a66b337528d700ae92d7940a04c59206e06a8495.camel@posteo.de/
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202512020957.PqnHfe7C-lkp@intel.com/
> Fixes: e03724aac758 ("pwm: Add Rust driver for T-HEAD TH1520 SoC")
> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Thanks for the patch. I applied it to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/fixes
and will send it to Linus in a few days. While this fixes a build time
issue it seems to be exotically enough to give us a few days in next.
Best regards
Uwe
© 2016 - 2025 Red Hat, Inc.