Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen
@ 2026-05-22 13:30 Akari Tsuyukusa
  2026-05-25  8:46 ` AngeloGioacchino Del Regno
  2026-05-26 17:15 ` Brian Masney
  0 siblings, 2 replies; 3+ messages in thread
From: Akari Tsuyukusa @ 2026-05-22 13:30 UTC (permalink / raw)
  To: mturquette, sboyd, bmasney, matthias.bgg,
	angelogioacchino.delregno, wenst, laura.nao
  Cc: linux-clk, linux-kernel, linux-arm-kernel, linux-mediatek,
	Akari Tsuyukusa, stable

The MediaTek MT8196 vlpckgen clock driver uses
__devm_regmap_init_mmio_clk() by devm_regmap_init_mmio(),
which is defined in drivers/base/regmap/regmap-mmio.c.
However, the driver's Kconfig entry does not select REGMAP_MMIO.
This causes a linker error when REGMAP_MMIO is not enabled.

Fix this by selecting REGMAP_MMIO in the Kconfig entry.

Fixes: 2f8b3ae6f0cb ("clk: mediatek: Add MT8196 vlpckgen clock support")
Cc: stable@vger.kernel.org
Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>
---
 drivers/clk/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig
index 2c09fd729bab..fd8440122ec2 100644
--- a/drivers/clk/mediatek/Kconfig
+++ b/drivers/clk/mediatek/Kconfig
@@ -1006,6 +1006,7 @@ config COMMON_CLK_MT8196
 	tristate "Clock driver for MediaTek MT8196"
 	depends on ARM64 || COMPILE_TEST
 	select COMMON_CLK_MEDIATEK
+	select REGMAP_MMIO
 	default ARCH_MEDIATEK
 	help
 	  This driver supports MediaTek MT8196 basic clocks.
-- 
2.54.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen
  2026-05-22 13:30 [PATCH] clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen Akari Tsuyukusa
@ 2026-05-25  8:46 ` AngeloGioacchino Del Regno
  2026-05-26 17:15 ` Brian Masney
  1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2026-05-25  8:46 UTC (permalink / raw)
  To: Akari Tsuyukusa, mturquette, sboyd, bmasney, matthias.bgg, wenst,
	laura.nao
  Cc: linux-clk, linux-kernel, linux-arm-kernel, linux-mediatek, stable

On 5/22/26 15:30, Akari Tsuyukusa wrote:
> The MediaTek MT8196 vlpckgen clock driver uses
> __devm_regmap_init_mmio_clk() by devm_regmap_init_mmio(),
> which is defined in drivers/base/regmap/regmap-mmio.c.
> However, the driver's Kconfig entry does not select REGMAP_MMIO.
> This causes a linker error when REGMAP_MMIO is not enabled.
> 
> Fix this by selecting REGMAP_MMIO in the Kconfig entry.
> 
> Fixes: 2f8b3ae6f0cb ("clk: mediatek: Add MT8196 vlpckgen clock support")
> Cc: stable@vger.kernel.org
> Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

> ---
>   drivers/clk/mediatek/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig
> index 2c09fd729bab..fd8440122ec2 100644
> --- a/drivers/clk/mediatek/Kconfig
> +++ b/drivers/clk/mediatek/Kconfig
> @@ -1006,6 +1006,7 @@ config COMMON_CLK_MT8196
>   	tristate "Clock driver for MediaTek MT8196"
>   	depends on ARM64 || COMPILE_TEST
>   	select COMMON_CLK_MEDIATEK
> +	select REGMAP_MMIO
>   	default ARCH_MEDIATEK
>   	help
>   	  This driver supports MediaTek MT8196 basic clocks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen
  2026-05-22 13:30 [PATCH] clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen Akari Tsuyukusa
  2026-05-25  8:46 ` AngeloGioacchino Del Regno
@ 2026-05-26 17:15 ` Brian Masney
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Masney @ 2026-05-26 17:15 UTC (permalink / raw)
  To: Akari Tsuyukusa
  Cc: mturquette, sboyd, matthias.bgg, angelogioacchino.delregno, wenst,
	laura.nao, linux-clk, linux-kernel, linux-arm-kernel,
	linux-mediatek, stable

On Fri, May 22, 2026 at 10:30:23PM +0900, Akari Tsuyukusa wrote:
> The MediaTek MT8196 vlpckgen clock driver uses
> __devm_regmap_init_mmio_clk() by devm_regmap_init_mmio(),
> which is defined in drivers/base/regmap/regmap-mmio.c.
> However, the driver's Kconfig entry does not select REGMAP_MMIO.
> This causes a linker error when REGMAP_MMIO is not enabled.
> 
> Fix this by selecting REGMAP_MMIO in the Kconfig entry.
> 
> Fixes: 2f8b3ae6f0cb ("clk: mediatek: Add MT8196 vlpckgen clock support")
> Cc: stable@vger.kernel.org
> Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>

Reviewed-by: Brian Masney <bmasney@redhat.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-26 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-22 13:30 [PATCH] clk: mediatek: mt8196: Select REGMAP_MMIO for vlpckgen Akari Tsuyukusa
2026-05-25  8:46 ` AngeloGioacchino Del Regno
2026-05-26 17:15 ` Brian Masney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox