* [PATCH] clk: amlogic: axg-audio: fix Kconfig dependency on RESET_MESON_AUX
@ 2024-11-11 10:29 Arnd Bergmann
2024-11-12 9:25 ` Jerome Brunet
2024-11-14 20:33 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2024-11-11 10:29 UTC (permalink / raw)
To: Neil Armstrong, Jerome Brunet, Michael Turquette, Stephen Boyd,
Kevin Hilman
Cc: Arnd Bergmann, Martin Blumenstingl, Chuan Liu, Xianwei Zhao,
linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
As in most cases, using 'imply' is wrong here and does not prevent
build failures since that code may not be visible to a built-in
clk driver:
axg-audio.c:(.text+0x15c): undefined reference to `devm_meson_rst_aux_register'
Replace the incorrt 'imply' with the necessary 'depends on'.
Fixes: 664988eb47dd ("clk: amlogic: axg-audio: use the auxiliary reset driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/clk/meson/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/Kconfig b/drivers/clk/meson/Kconfig
index 7cb21fc223b0..febb5d7348ff 100644
--- a/drivers/clk/meson/Kconfig
+++ b/drivers/clk/meson/Kconfig
@@ -106,7 +106,7 @@ config COMMON_CLK_AXG_AUDIO
select COMMON_CLK_MESON_SCLK_DIV
select COMMON_CLK_MESON_CLKC_UTILS
select REGMAP_MMIO
- imply RESET_MESON_AUX
+ depends on RESET_MESON_AUX
help
Support for the audio clock controller on AmLogic A113D devices,
aka axg, Say Y if you want audio subsystem to work.
--
2.39.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: amlogic: axg-audio: fix Kconfig dependency on RESET_MESON_AUX
2024-11-11 10:29 [PATCH] clk: amlogic: axg-audio: fix Kconfig dependency on RESET_MESON_AUX Arnd Bergmann
@ 2024-11-12 9:25 ` Jerome Brunet
2024-11-14 20:33 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Jerome Brunet @ 2024-11-12 9:25 UTC (permalink / raw)
To: Arnd Bergmann, Stephen Boyd
Cc: Neil Armstrong, Michael Turquette, Kevin Hilman, Arnd Bergmann,
Martin Blumenstingl, Chuan Liu, Xianwei Zhao, linux-amlogic,
linux-clk, linux-arm-kernel, linux-kernel
On Mon 11 Nov 2024 at 11:29, Arnd Bergmann <arnd@kernel.org> wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> As in most cases, using 'imply' is wrong here and does not prevent
> build failures since that code may not be visible to a built-in
> clk driver:
>
> axg-audio.c:(.text+0x15c): undefined reference to `devm_meson_rst_aux_register'
The function registering the aux driver was in clock in some old version
(imply was ok at that point) and I forgot to change that when it moved to
reset.
Thanks for catching this
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Stephen, This fixes the PR you applied. I guess how to pick this up
depends on how you want to deal with the Fixes tag problem reported by
Stephen Rothwell.
>
> Replace the incorrt 'imply' with the necessary 'depends on'.
>
> Fixes: 664988eb47dd ("clk: amlogic: axg-audio: use the auxiliary reset driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/clk/meson/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/meson/Kconfig b/drivers/clk/meson/Kconfig
> index 7cb21fc223b0..febb5d7348ff 100644
> --- a/drivers/clk/meson/Kconfig
> +++ b/drivers/clk/meson/Kconfig
> @@ -106,7 +106,7 @@ config COMMON_CLK_AXG_AUDIO
> select COMMON_CLK_MESON_SCLK_DIV
> select COMMON_CLK_MESON_CLKC_UTILS
> select REGMAP_MMIO
> - imply RESET_MESON_AUX
> + depends on RESET_MESON_AUX
> help
> Support for the audio clock controller on AmLogic A113D devices,
> aka axg, Say Y if you want audio subsystem to work.
--
Jerome
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: amlogic: axg-audio: fix Kconfig dependency on RESET_MESON_AUX
2024-11-11 10:29 [PATCH] clk: amlogic: axg-audio: fix Kconfig dependency on RESET_MESON_AUX Arnd Bergmann
2024-11-12 9:25 ` Jerome Brunet
@ 2024-11-14 20:33 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2024-11-14 20:33 UTC (permalink / raw)
To: Arnd Bergmann, Jerome Brunet, Kevin Hilman, Michael Turquette,
Neil Armstrong
Cc: Arnd Bergmann, Martin Blumenstingl, Chuan Liu, Xianwei Zhao,
linux-amlogic, linux-clk, linux-arm-kernel, linux-kernel
Quoting Arnd Bergmann (2024-11-11 02:29:21)
> From: Arnd Bergmann <arnd@arndb.de>
>
> As in most cases, using 'imply' is wrong here and does not prevent
> build failures since that code may not be visible to a built-in
> clk driver:
>
> axg-audio.c:(.text+0x15c): undefined reference to `devm_meson_rst_aux_register'
>
> Replace the incorrt 'imply' with the necessary 'depends on'.
>
> Fixes: 664988eb47dd ("clk: amlogic: axg-audio: use the auxiliary reset driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-14 20:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 10:29 [PATCH] clk: amlogic: axg-audio: fix Kconfig dependency on RESET_MESON_AUX Arnd Bergmann
2024-11-12 9:25 ` Jerome Brunet
2024-11-14 20:33 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).