public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: renesas: cpg_mstp: build for R8A774{3,5}
@ 2016-11-24 16:24 Arnd Bergmann
  2016-11-24 16:38 ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2016-11-24 16:24 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: Arnd Bergmann, Geert Uytterhoeven, Sergei Shtylyov,
	Laurent Pinchart, linux-renesas-soc, linux-clk, linux-kernel

We get a link failure on R8A7745 and R8A7743 when the other platforms
are disabled and nothing selects the clk-rcar-gen2 driver:

drivers/clk/renesas/clk-rcar-gen2.o: In function `rcar_gen2_cpg_clocks_init':
clk-rcar-gen2.c:(.init.text+0x39c): undefined reference to `cpg_mstp_add_clk_domain'

This adds another 'select' statement to get them to build as well.

Fixes: 9127d54bb894 ("clk: renesas: cpg-mssr: Add R8A7745 support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/clk/renesas/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig
index 2586dfa0026b..4ebd9d3d24b7 100644
--- a/drivers/clk/renesas/Kconfig
+++ b/drivers/clk/renesas/Kconfig
@@ -10,6 +10,8 @@ config CLK_RENESAS_CPG_MSTP
 	default y if ARCH_R7S72100
 	default y if ARCH_R8A73A4
 	default y if ARCH_R8A7740
+	default y if ARCH_R8A7743
+	default y if ARCH_R8A7745
 	default y if ARCH_R8A7778
 	default y if ARCH_R8A7779
 	default y if ARCH_R8A7790
-- 
2.9.0


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

* Re: [PATCH] clk: renesas: cpg_mstp: build for R8A774{3,5}
  2016-11-24 16:24 [PATCH] clk: renesas: cpg_mstp: build for R8A774{3,5} Arnd Bergmann
@ 2016-11-24 16:38 ` Geert Uytterhoeven
  2016-11-24 16:42   ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2016-11-24 16:38 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Michael Turquette, Stephen Boyd, Geert Uytterhoeven,
	Sergei Shtylyov, Laurent Pinchart, Linux-Renesas, linux-clk,
	linux-kernel@vger.kernel.org

Hi Arnd,

On Thu, Nov 24, 2016 at 5:24 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> We get a link failure on R8A7745 and R8A7743 when the other platforms
> are disabled and nothing selects the clk-rcar-gen2 driver:
>
> drivers/clk/renesas/clk-rcar-gen2.o: In function `rcar_gen2_cpg_clocks_init':
> clk-rcar-gen2.c:(.init.text+0x39c): undefined reference to `cpg_mstp_add_clk_domain'

clk-rcar-gen2  is not used on R8A7745 and R8A7743?

> This adds another 'select' statement to get them to build as well.
>
> Fixes: 9127d54bb894 ("clk: renesas: cpg-mssr: Add R8A7745 support")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/clk/renesas/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig
> index 2586dfa0026b..4ebd9d3d24b7 100644
> --- a/drivers/clk/renesas/Kconfig
> +++ b/drivers/clk/renesas/Kconfig
> @@ -10,6 +10,8 @@ config CLK_RENESAS_CPG_MSTP
>         default y if ARCH_R7S72100
>         default y if ARCH_R8A73A4
>         default y if ARCH_R8A7740
> +       default y if ARCH_R8A7743
> +       default y if ARCH_R8A7745

R8A7745 and R8A7743 don't need the CPG_MSTP driver, they select
CLK_RENESAS_CPG_MSSR instead.

Perhaps you still have your patch "[PATCH] clk: fix link error for rcar-gen2"
applied to enable clk-rcar-gen2.o on R8A7745?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] clk: renesas: cpg_mstp: build for R8A774{3,5}
  2016-11-24 16:38 ` Geert Uytterhoeven
@ 2016-11-24 16:42   ` Arnd Bergmann
  0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2016-11-24 16:42 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Michael Turquette, Stephen Boyd, Geert Uytterhoeven,
	Sergei Shtylyov, Laurent Pinchart, Linux-Renesas, linux-clk,
	linux-kernel@vger.kernel.org

On Thursday, November 24, 2016 5:38:45 PM CET Geert Uytterhoeven wrote:
> 
> R8A7745 and R8A7743 don't need the CPG_MSTP driver, they select
> CLK_RENESAS_CPG_MSSR instead.
> 
> Perhaps you still have your patch "[PATCH] clk: fix link error for rcar-gen2"
> applied to enable clk-rcar-gen2.o on R8A7745?
> 
> Gr{oetje,eeting}s,
> 

Ah, right. My mistake. I'll drop both then.

	Arnd

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

end of thread, other threads:[~2016-11-24 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24 16:24 [PATCH] clk: renesas: cpg_mstp: build for R8A774{3,5} Arnd Bergmann
2016-11-24 16:38 ` Geert Uytterhoeven
2016-11-24 16:42   ` Arnd Bergmann

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