From: Pengpeng Hou <hppiscas@163.com>
To: miquel.raynal@bootlin.com
Cc: Pengpeng Hou <hppiscas@163.com>,
richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org, Andrew Davis <afd@ti.com>
Subject: [PATCH v2] mtd: nand: realtek: select REGMAP_MMIO
Date: Thu, 3 Dec 2026 11:31:33 +0800 [thread overview]
Message-ID: <20261203033133.56889-1-hppiscas@163.com> (raw)
The Realtek ECC engine uses devm_regmap_init_mmio() but does not select
REGMAP_MMIO. Select the backend so the driver can link without depending
on another driver to enable it.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 3148d0e5b1c5 ("mtd: nand: realtek-ecc: Add Realtek external ECC engine support")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
Changes since v1:
Use Kconfig tab indentation throughout the affected entry, as Andrew
Davis suggested.
Previous version: https://lore.kernel.org/r/20261130130844.79829-1-hppiscas@163.com
Codex assisted with patch preparation and the changelog.
Current review: Codex (Assisted-by: gpt 5).
Static review only; this revision was not built.
drivers/mtd/nand/Kconfig | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 1e57c8de857825d7ff87519b5b0d9a768aa293cc..7a7e8854a2bf7ec0120eaf56e23252e863344aac 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -62,12 +62,13 @@ config MTD_NAND_ECC_MEDIATEK
This enables support for the hardware ECC engine from Mediatek.
config MTD_NAND_ECC_REALTEK
- tristate "Realtek RTL93xx hardware ECC engine"
- depends on HAS_IOMEM && HAS_DMA
- depends on MACH_REALTEK_RTL || COMPILE_TEST
- select MTD_NAND_ECC
- help
- This enables support for the hardware ECC engine from Realtek.
+ tristate "Realtek RTL93xx hardware ECC engine"
+ depends on HAS_IOMEM && HAS_DMA
+ depends on MACH_REALTEK_RTL || COMPILE_TEST
+ select MTD_NAND_ECC
+ select REGMAP_MMIO
+ help
+ This enables support for the hardware ECC engine from Realtek.
endmenu
base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790
reply other threads:[~2026-12-03 3:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261203033133.56889-1-hppiscas@163.com \
--to=hppiscas@163.com \
--cc=afd@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
/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®