* [PATCH] watchdog: atcwdt200: select REGMAP_MMIO
@ 2026-11-30 13:02 Pengpeng Hou
2026-11-30 15:16 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-11-30 13:02 UTC (permalink / raw)
To: wim; +Cc: linux, cl634, linux-watchdog, linux-kernel, hppiscas
atcwdt200_wdt.c initializes an MMIO regmap using
devm_regmap_init_mmio(), but ATCWDT200_WATCHDOG does not select
REGMAP_MMIO. The driver can therefore be enabled without the
required register-transport implementation and fail to build.
Select REGMAP_MMIO so the backend is enabled at the linkage level
required by this consumer, rather than relying on another driver to
pull it in.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: e4e0848ad046 ("watchdog: atcwdt200: Add driver for Andes ATCWDT200")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/watchdog/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index f7d0a0c..9123f72 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -2149,6 +2149,7 @@ config WATCHDOG_RTAS
config ATCWDT200_WATCHDOG
tristate "Andes ATCWDT200 Watchdog support"
depends on ARCH_ANDES || COMPILE_TEST
+ select REGMAP_MMIO
help
Driver for the Andes ATCWDT200 watchdog timer. It provides access to
programmable reset and interrupt counters with clock-source dependent
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] watchdog: atcwdt200: select REGMAP_MMIO
2026-11-30 13:02 [PATCH] watchdog: atcwdt200: select REGMAP_MMIO Pengpeng Hou
@ 2026-11-30 15:16 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2026-11-30 15:16 UTC (permalink / raw)
To: Pengpeng Hou; +Cc: wim, cl634, linux-watchdog, linux-kernel
On Mon, Nov 30, 2026 at 09:02:43PM +0800, Pengpeng Hou wrote:
> atcwdt200_wdt.c initializes an MMIO regmap using
> devm_regmap_init_mmio(), but ATCWDT200_WATCHDOG does not select
> REGMAP_MMIO. The driver can therefore be enabled without the
> required register-transport implementation and fail to build.
>
> Select REGMAP_MMIO so the backend is enabled at the linkage level
> required by this consumer, rather than relying on another driver to
> pull it in.
>
> The issue was found by our static-analysis tool and manually reviewed.
>
> Fixes: e4e0848ad046 ("watchdog: atcwdt200: Add driver for Andes ATCWDT200")
> Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 13:02 [PATCH] watchdog: atcwdt200: select REGMAP_MMIO Pengpeng Hou
2026-11-30 15:16 ` Guenter Roeck
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®