SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues
@ 2014-05-14 14:47 Geert Uytterhoeven
  2014-05-14 23:17 ` Simon Horman
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2014-05-14 14:47 UTC (permalink / raw)
  To: linux-sh

Now the core clock issues have been fixed by commit
3c90c55dcde745bed81f6447f24ba96bda43d984 ("drivers: sh: compile
drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI"), revert the following
3 commits:
  - 4dcb4c80380dfa482874b931e308fd382597feab ("ARM: shmobile: Add Koelsch
    clock workarounds for SDHI"),
  - 8e4f394b20a0fe474dd88204d76978191566decf ("ARM: shmobile:
    koelsch-reference: Annotate clk_enables as __initconst"),
  - 3d75d9ea74fee6f5a4bdcbbdf2d577661d047eef ("ARM: shmobile:
    koelsch-reference: Work around core clock issues").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
This depends on 3c90c55dcde745bed81f6447f24ba96bda43d984 having landed
in Linus' tree

v3:
  - Add Reviewed-by
v2:
  - New
---
 arch/arm/mach-shmobile/board-koelsch-reference.c |   15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c b/arch/arm/mach-shmobile/board-koelsch-reference.c
index d322a162b4b0..a13b51ff8817 100644
--- a/arch/arm/mach-shmobile/board-koelsch-reference.c
+++ b/arch/arm/mach-shmobile/board-koelsch-reference.c
@@ -92,24 +92,9 @@ static const struct clk_name clk_names[] __initconst = {
 	{ "lvds0", "lvds.0", "rcar-du-r8a7791" },
 };
 
-/*
- * This is a really crude hack to work around core platform clock issues
- */
-static const struct clk_name clk_enables[] __initconst = {
-	{ "ether", NULL, "ee700000.ethernet" },
-	{ "i2c2", NULL, "e6530000.i2c" },
-	{ "msiof0", NULL, "e6e20000.spi" },
-	{ "qspi_mod", NULL, "e6b10000.spi" },
-	{ "sdhi0", NULL, "ee100000.sd" },
-	{ "sdhi1", NULL, "ee140000.sd" },
-	{ "sdhi2", NULL, "ee160000.sd" },
-	{ "thermal", NULL, "e61f0000.thermal" },
-};
-
 static void __init koelsch_add_standard_devices(void)
 {
 	shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), false);
-	shmobile_clk_workaround(clk_enables, ARRAY_SIZE(clk_enables), true);
 	r8a7791_add_dt_devices();
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 
-- 
1.7.9.5


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

* Re: [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues
  2014-05-14 14:47 [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues Geert Uytterhoeven
@ 2014-05-14 23:17 ` Simon Horman
  2014-05-15  6:35 ` Geert Uytterhoeven
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2014-05-14 23:17 UTC (permalink / raw)
  To: linux-sh

On Wed, May 14, 2014 at 04:47:45PM +0200, Geert Uytterhoeven wrote:
> Now the core clock issues have been fixed by commit
> 3c90c55dcde745bed81f6447f24ba96bda43d984 ("drivers: sh: compile
> drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI"), revert the following
> 3 commits:
>   - 4dcb4c80380dfa482874b931e308fd382597feab ("ARM: shmobile: Add Koelsch
>     clock workarounds for SDHI"),
>   - 8e4f394b20a0fe474dd88204d76978191566decf ("ARM: shmobile:
>     koelsch-reference: Annotate clk_enables as __initconst"),
>   - 3d75d9ea74fee6f5a4bdcbbdf2d577661d047eef ("ARM: shmobile:
>     koelsch-reference: Work around core clock issues").
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> This depends on 3c90c55dcde745bed81f6447f24ba96bda43d984 having landed
> in Linus' tree

Very nice. And likewise for lager.
And I suspect we can clean up other platforms too
(perhaps patches which haven't been queued up yet).

Please repost this once the dependency hits Linus's tree.
I will then queue it up for 3.17.

> 
> v3:
>   - Add Reviewed-by
> v2:
>   - New
> ---
>  arch/arm/mach-shmobile/board-koelsch-reference.c |   15 ---------------
>  1 file changed, 15 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/board-koelsch-reference.c b/arch/arm/mach-shmobile/board-koelsch-reference.c
> index d322a162b4b0..a13b51ff8817 100644
> --- a/arch/arm/mach-shmobile/board-koelsch-reference.c
> +++ b/arch/arm/mach-shmobile/board-koelsch-reference.c
> @@ -92,24 +92,9 @@ static const struct clk_name clk_names[] __initconst = {
>  	{ "lvds0", "lvds.0", "rcar-du-r8a7791" },
>  };
>  
> -/*
> - * This is a really crude hack to work around core platform clock issues
> - */
> -static const struct clk_name clk_enables[] __initconst = {
> -	{ "ether", NULL, "ee700000.ethernet" },
> -	{ "i2c2", NULL, "e6530000.i2c" },
> -	{ "msiof0", NULL, "e6e20000.spi" },
> -	{ "qspi_mod", NULL, "e6b10000.spi" },
> -	{ "sdhi0", NULL, "ee100000.sd" },
> -	{ "sdhi1", NULL, "ee140000.sd" },
> -	{ "sdhi2", NULL, "ee160000.sd" },
> -	{ "thermal", NULL, "e61f0000.thermal" },
> -};
> -
>  static void __init koelsch_add_standard_devices(void)
>  {
>  	shmobile_clk_workaround(clk_names, ARRAY_SIZE(clk_names), false);
> -	shmobile_clk_workaround(clk_enables, ARRAY_SIZE(clk_enables), true);
>  	r8a7791_add_dt_devices();
>  	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
>  
> -- 
> 1.7.9.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues
  2014-05-14 14:47 [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues Geert Uytterhoeven
  2014-05-14 23:17 ` Simon Horman
@ 2014-05-15  6:35 ` Geert Uytterhoeven
  2014-05-15  6:47 ` Simon Horman
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2014-05-15  6:35 UTC (permalink / raw)
  To: linux-sh

Hi Simon,

On Thu, May 15, 2014 at 1:17 AM, Simon Horman <horms@verge.net.au> wrote:
> On Wed, May 14, 2014 at 04:47:45PM +0200, Geert Uytterhoeven wrote:
>> Now the core clock issues have been fixed by commit
>> 3c90c55dcde745bed81f6447f24ba96bda43d984 ("drivers: sh: compile
>> drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI"), revert the following
>> 3 commits:
>>   - 4dcb4c80380dfa482874b931e308fd382597feab ("ARM: shmobile: Add Koelsch
>>     clock workarounds for SDHI"),
>>   - 8e4f394b20a0fe474dd88204d76978191566decf ("ARM: shmobile:
>>     koelsch-reference: Annotate clk_enables as __initconst"),
>>   - 3d75d9ea74fee6f5a4bdcbbdf2d577661d047eef ("ARM: shmobile:
>>     koelsch-reference: Work around core clock issues").
>>
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>> ---
>> This depends on 3c90c55dcde745bed81f6447f24ba96bda43d984 having landed
>> in Linus' tree
>
> Very nice. And likewise for lager.
> And I suspect we can clean up other platforms too
> (perhaps patches which haven't been queued up yet).

There are no clk_enables[] in the other platforms.

> Please repost this once the dependency hits Linus's tree.
> I will then queue it up for 3.17.

Does it really have to wait that long?

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] 6+ messages in thread

* Re: [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues
  2014-05-14 14:47 [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues Geert Uytterhoeven
  2014-05-14 23:17 ` Simon Horman
  2014-05-15  6:35 ` Geert Uytterhoeven
@ 2014-05-15  6:47 ` Simon Horman
  2014-05-15  6:51 ` Simon Horman
  2014-05-15  6:53 ` Geert Uytterhoeven
  4 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2014-05-15  6:47 UTC (permalink / raw)
  To: linux-sh

On Thu, May 15, 2014 at 08:35:59AM +0200, Geert Uytterhoeven wrote:
> Hi Simon,
> 
> On Thu, May 15, 2014 at 1:17 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Wed, May 14, 2014 at 04:47:45PM +0200, Geert Uytterhoeven wrote:
> >> Now the core clock issues have been fixed by commit
> >> 3c90c55dcde745bed81f6447f24ba96bda43d984 ("drivers: sh: compile
> >> drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI"), revert the following
> >> 3 commits:
> >>   - 4dcb4c80380dfa482874b931e308fd382597feab ("ARM: shmobile: Add Koelsch
> >>     clock workarounds for SDHI"),
> >>   - 8e4f394b20a0fe474dd88204d76978191566decf ("ARM: shmobile:
> >>     koelsch-reference: Annotate clk_enables as __initconst"),
> >>   - 3d75d9ea74fee6f5a4bdcbbdf2d577661d047eef ("ARM: shmobile:
> >>     koelsch-reference: Work around core clock issues").
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >> ---
> >> This depends on 3c90c55dcde745bed81f6447f24ba96bda43d984 having landed
> >> in Linus' tree
> >
> > Very nice. And likewise for lager.
> > And I suspect we can clean up other platforms too
> > (perhaps patches which haven't been queued up yet).
> 
> There are no clk_enables[] in the other platforms.

I must have imagined some.

> > Please repost this once the dependency hits Linus's tree.
> > I will then queue it up for 3.17.
> 
> Does it really have to wait that long?

On reflection, no.
I'll see about queuing it up.

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

* Re: [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues
  2014-05-14 14:47 [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues Geert Uytterhoeven
                   ` (2 preceding siblings ...)
  2014-05-15  6:47 ` Simon Horman
@ 2014-05-15  6:51 ` Simon Horman
  2014-05-15  6:53 ` Geert Uytterhoeven
  4 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2014-05-15  6:51 UTC (permalink / raw)
  To: linux-sh

On Thu, May 15, 2014 at 03:47:04PM +0900, Simon Horman wrote:
> On Thu, May 15, 2014 at 08:35:59AM +0200, Geert Uytterhoeven wrote:
> > Hi Simon,
> > 
> > On Thu, May 15, 2014 at 1:17 AM, Simon Horman <horms@verge.net.au> wrote:
> > > On Wed, May 14, 2014 at 04:47:45PM +0200, Geert Uytterhoeven wrote:
> > >> Now the core clock issues have been fixed by commit
> > >> 3c90c55dcde745bed81f6447f24ba96bda43d984 ("drivers: sh: compile
> > >> drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI"), revert the following
> > >> 3 commits:
> > >>   - 4dcb4c80380dfa482874b931e308fd382597feab ("ARM: shmobile: Add Koelsch
> > >>     clock workarounds for SDHI"),
> > >>   - 8e4f394b20a0fe474dd88204d76978191566decf ("ARM: shmobile:
> > >>     koelsch-reference: Annotate clk_enables as __initconst"),
> > >>   - 3d75d9ea74fee6f5a4bdcbbdf2d577661d047eef ("ARM: shmobile:
> > >>     koelsch-reference: Work around core clock issues").
> > >>
> > >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > >> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > >> ---
> > >> This depends on 3c90c55dcde745bed81f6447f24ba96bda43d984 having landed
> > >> in Linus' tree
> > >
> > > Very nice. And likewise for lager.
> > > And I suspect we can clean up other platforms too
> > > (perhaps patches which haven't been queued up yet).
> > 
> > There are no clk_enables[] in the other platforms.
> 
> I must have imagined some.
> 
> > > Please repost this once the dependency hits Linus's tree.
> > > I will then queue it up for 3.17.
> > 
> > Does it really have to wait that long?
> 
> On reflection, no.
> I'll see about queuing it up.

I have now done so.

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

* Re: [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues
  2014-05-14 14:47 [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues Geert Uytterhoeven
                   ` (3 preceding siblings ...)
  2014-05-15  6:51 ` Simon Horman
@ 2014-05-15  6:53 ` Geert Uytterhoeven
  4 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2014-05-15  6:53 UTC (permalink / raw)
  To: linux-sh

Hi Simon,

On Thu, May 15, 2014 at 8:51 AM, Simon Horman <horms@verge.net.au> wrote:
>> I'll see about queuing it up.
>
> I have now done so.

Thanks a lot!

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] 6+ messages in thread

end of thread, other threads:[~2014-05-15  6:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 14:47 [PATCH v3 1/2] ARM: shmobile: koelsch-reference: Remove workarounds for core clock issues Geert Uytterhoeven
2014-05-14 23:17 ` Simon Horman
2014-05-15  6:35 ` Geert Uytterhoeven
2014-05-15  6:47 ` Simon Horman
2014-05-15  6:51 ` Simon Horman
2014-05-15  6:53 ` Geert Uytterhoeven

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