Skip to contentSkip to conversation

pinctrl: realtek: Select REGMAP_MMIO for RTD driver

PATCH In review Yu-Chun Lin 2 participants 2 messages Oct 23, 2025

Subsystems (2)
lore
Share & tools
lore

Yu-Chun Lin

author maintainer
#0 lore raw

PATCH 1/1 pinctrl: realtek: Select REGMAP_MMIO for RTD driver

The pinctrl-rtd driver uses 'devm_regmap_init_mmio', which requires 'REGMAP_MMIO' to be enabled.

Without this selection, the build fails with an undefined reference:
aarch64-none-linux-gnu-ld: drivers/pinctrl/realtek/pinctrl-rtd.o: in function rtd_pinctrl_probe': pinctrl-rtd.c:(.text+0x5a0): undefined reference to __devm_regmap_init_mmio_clk'

Fix this by selecting 'REGMAP_MMIO' in the Kconfig.

Fixes e99ce78030db ("pinctrl: realtek: Add common pinctrl driver for Realtek DHC RTD SoCs")
---
 drivers/pinctrl/realtek/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/pinctrl/realtek/Kconfig +1 -0
index 0fc6bd4fcb7e..400c9e5b16ad 100644
@@ -6,6 +6,7 @@ config PINCTRL_RTD
 	default y
 	select PINMUX
 	select GENERIC_PINCONF
+	select REGMAP_MMIO
 
 config PINCTRL_RTD1619B
 	tristate "Realtek DHC 1619B pin controller driver"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 8 lines · Yu-Chun Lin

The pinctrl-rtd driver uses 'devm_regmap_init_mmio', which requires 'REGMAP_MMIO' to be enabled.

Without this selection, the build fails with an undefined reference:
aarch64-none-linux-gnu-ld: drivers/pinctrl/realtek/pinctrl-rtd.o: in function rtd_pinctrl_probe': pinctrl-rtd.c:(.text+0x5a0): undefined reference to __devm_regmap_init_mmio_clk'

Quoted 4 lines

Fix this by selecting 'REGMAP_MMIO' in the Kconfig.

Fixes e99ce78030db ("pinctrl: realtek: Add common pinctrl driver for Realtek DHC RTD SoCs")

Right!
Patch applied for fixes.

Yours,
Linus Walleij