From: Pengpeng Hou <hppiscas@163.com>
To: alexandre.belloni@bootlin.com
Cc: linux-rtc@vger.kernel.org, wim@linux-watchdog.org,
linux@roeck-us.net, linux-watchdog@vger.kernel.org,
linux-kernel@vger.kernel.org, hppiscas@163.com
Subject: [PATCH 1/2] rtc: m41t93: select REGMAP_SPI
Date: Mon, 30 Nov 2026 21:38:52 +0800 [thread overview]
Message-ID: <20261130133853.87210-2-hppiscas@163.com> (raw)
In-Reply-To: <20261130133853.87210-1-hppiscas@163.com>
rtc-m41t93.c initializes an SPI regmap using devm_regmap_init_spi(),
but RTC_DRV_M41T93 does not select REGMAP_SPI. The driver can
therefore be enabled without the required register-transport
implementation and fail to build.
Select REGMAP_SPI 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: d86e8682593c ("rtc: m41t93: migrate to regmap api for register access")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/rtc/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 73ec923..8f9e59a 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -816,6 +816,7 @@ if SPI_MASTER
config RTC_DRV_M41T93
tristate "ST M41T93"
+ select REGMAP_SPI
help
If you say yes here you will get support for the
ST M41T93 SPI RTC chip.
next prev parent reply other threads:[~2026-11-30 13:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 13:38 [PATCH 0/2] rtc: m41t93: fix missing subsystem dependencies Pengpeng Hou
2026-11-30 13:38 ` Pengpeng Hou [this message]
2026-11-30 13:38 ` [PATCH 2/2] rtc: m41t93: select the watchdog core when enabled Pengpeng Hou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130133853.87210-2-hppiscas@163.com \
--to=hppiscas@163.com \
--cc=alexandre.belloni@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®