diff mbox

[v6,00/12] CCF support for Renesas r7s72100

Message ID CAMuHMdUTQbTSU4GSuxZX22QTqyQuo-zsNg4+d+OqpqEbjOnCaA@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Geert Uytterhoeven May 14, 2014, 9:44 a.m. UTC
Hi Wolfram, Simon,

On Wed, May 14, 2014 at 7:08 AM, Simon Horman <horms@verge.net.au> wrote:
> On Wed, May 14, 2014 at 03:10:04AM +0200, Wolfram Sang wrote:
>> This series moves the r7s72100 platfrom from the legacy clock implementation to
>> the common clock framework.
>>
>> This series has been tested with the renesas-devel-v3.15-rc2-20140428 tag. If
>> you want to boot into a console, you have a runtime dependency [1] which is
>> expected to go away in 3.15-rc6.
>>
>> Changes since V5:
>>
>> * rebased and tested against latest renesas/devel-tag
>>   (with and without CCF)

That's genmai-legacy (ARCH_SHMOBILE_LEGACY=y, MACH_GENMAI=y),
and genmai-multiplatform (ARCH_SHMOBILE_MULTI=y, MACH_GENMAI=y,
right?

There's still a third variant: genmai-reference (ARCH_SHMOBILE_LEGACY=y,
MACH_GENMAI_REFERENCE=y), which uses board-genmai-reference.c,
but without CCF, i.e. with clock-r7s72100.c.
For that, you still need the legacy clocks (also for serial!), so I needed the
(gmail-whitespace-damaged) temporary workaround below in my local tree.

> Thanks, I have queued up this series.

Do we want to go for the quick fix below, or just fix the issue for good,
and merge genmai-reference and genmai-multiplatform now, just like we did
for koelsch/lager?

I can send a proper patch for the quick fix, depending on your decision.

From 1b7b851a5d1b7d10f42f68a35b65278827b03cc4 Mon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: Mon, 12 May 2014 14:32:25 +0200
Subject: [PATCH] ARM: shmobile: genmai-reference: Re-add legacy clocks

genmai-reference still uses non-CCF, so it needs the legacy clocks

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/mach-shmobile/clock-r7s72100.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Simon Horman May 14, 2014, 11:02 p.m. UTC | #1
On Wed, May 14, 2014 at 11:44:02AM +0200, Geert Uytterhoeven wrote:
> Hi Wolfram, Simon,
> 
> On Wed, May 14, 2014 at 7:08 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Wed, May 14, 2014 at 03:10:04AM +0200, Wolfram Sang wrote:
> >> This series moves the r7s72100 platfrom from the legacy clock implementation to
> >> the common clock framework.
> >>
> >> This series has been tested with the renesas-devel-v3.15-rc2-20140428 tag. If
> >> you want to boot into a console, you have a runtime dependency [1] which is
> >> expected to go away in 3.15-rc6.
> >>
> >> Changes since V5:
> >>
> >> * rebased and tested against latest renesas/devel-tag
> >>   (with and without CCF)
> 
> That's genmai-legacy (ARCH_SHMOBILE_LEGACY=y, MACH_GENMAI=y),
> and genmai-multiplatform (ARCH_SHMOBILE_MULTI=y, MACH_GENMAI=y,
> right?
> 
> There's still a third variant: genmai-reference (ARCH_SHMOBILE_LEGACY=y,
> MACH_GENMAI_REFERENCE=y), which uses board-genmai-reference.c,
> but without CCF, i.e. with clock-r7s72100.c.
> For that, you still need the legacy clocks (also for serial!), so I needed the
> (gmail-whitespace-damaged) temporary workaround below in my local tree.
> 
> > Thanks, I have queued up this series.
> 
> Do we want to go for the quick fix below, or just fix the issue for good,
> and merge genmai-reference and genmai-multiplatform now, just like we did
> for koelsch/lager?
> 
> I can send a proper patch for the quick fix, depending on your decision.

I do not feel particularly strongly about this.  But it seems to me that it
would make sense to take the same approach as koelsch and lager.

> >From 1b7b851a5d1b7d10f42f68a35b65278827b03cc4 Mon Sep 17 00:00:00 2001
> From: Geert Uytterhoeven <geert+renesas@glider.be>
> Date: Mon, 12 May 2014 14:32:25 +0200
> Subject: [PATCH] ARM: shmobile: genmai-reference: Re-add legacy clocks
> 
> genmai-reference still uses non-CCF, so it needs the legacy clocks
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  arch/arm/mach-shmobile/clock-r7s72100.c |   10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c
> b/arch/arm/mach-shmobile/clock-r7s72100.c
> index df187484de5d..1b677e0a69c6 100644
> --- a/arch/arm/mach-shmobile/clock-r7s72100.c
> +++ b/arch/arm/mach-shmobile/clock-r7s72100.c
> @@ -194,6 +194,16 @@ static struct clk_lookup lookups[] = {
>   CLKDEV_DEV_ID("rspi-rz.2", &mstp_clks[MSTP105]),
>   CLKDEV_DEV_ID("rspi-rz.3", &mstp_clks[MSTP104]),
>   CLKDEV_DEV_ID("rspi-rz.4", &mstp_clks[MSTP103]),
> + CLKDEV_DEV_ID("e800c800.spi", &mstp_clks[MSTP107]),
> + CLKDEV_DEV_ID("e800d000.spi", &mstp_clks[MSTP106]),
> + CLKDEV_DEV_ID("e800d800.spi", &mstp_clks[MSTP105]),
> + CLKDEV_DEV_ID("e800e000.spi", &mstp_clks[MSTP104]),
> + CLKDEV_DEV_ID("e800e800.spi", &mstp_clks[MSTP103]),
> + CLKDEV_DEV_ID("fcfee000.i2c", &mstp_clks[MSTP97]),
> + CLKDEV_DEV_ID("fcfee400.i2c", &mstp_clks[MSTP96]),
> + CLKDEV_DEV_ID("fcfee800.i2c", &mstp_clks[MSTP95]),
> + CLKDEV_DEV_ID("fcfeec00.i2c", &mstp_clks[MSTP94]),
> + CLKDEV_DEV_ID("e8008000.serial", &mstp_clks[MSTP45]),
>   CLKDEV_DEV_ID("r7s72100-ether", &mstp_clks[MSTP74]),
> 
>   /* ICK */
> -- 
> 1.7.9.5
> 
> 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
>
Simon Horman May 16, 2014, 12:19 a.m. UTC | #2
On Thu, May 15, 2014 at 08:02:47AM +0900, Simon Horman wrote:
> On Wed, May 14, 2014 at 11:44:02AM +0200, Geert Uytterhoeven wrote:
> > Hi Wolfram, Simon,
> > 
> > On Wed, May 14, 2014 at 7:08 AM, Simon Horman <horms@verge.net.au> wrote:
> > > On Wed, May 14, 2014 at 03:10:04AM +0200, Wolfram Sang wrote:
> > >> This series moves the r7s72100 platfrom from the legacy clock implementation to
> > >> the common clock framework.
> > >>
> > >> This series has been tested with the renesas-devel-v3.15-rc2-20140428 tag. If
> > >> you want to boot into a console, you have a runtime dependency [1] which is
> > >> expected to go away in 3.15-rc6.
> > >>
> > >> Changes since V5:
> > >>
> > >> * rebased and tested against latest renesas/devel-tag
> > >>   (with and without CCF)
> > 
> > That's genmai-legacy (ARCH_SHMOBILE_LEGACY=y, MACH_GENMAI=y),
> > and genmai-multiplatform (ARCH_SHMOBILE_MULTI=y, MACH_GENMAI=y,
> > right?
> > 
> > There's still a third variant: genmai-reference (ARCH_SHMOBILE_LEGACY=y,
> > MACH_GENMAI_REFERENCE=y), which uses board-genmai-reference.c,
> > but without CCF, i.e. with clock-r7s72100.c.
> > For that, you still need the legacy clocks (also for serial!), so I needed the
> > (gmail-whitespace-damaged) temporary workaround below in my local tree.
> > 
> > > Thanks, I have queued up this series.
> > 
> > Do we want to go for the quick fix below, or just fix the issue for good,
> > and merge genmai-reference and genmai-multiplatform now, just like we did
> > for koelsch/lager?
> > 
> > I can send a proper patch for the quick fix, depending on your decision.
> 
> I do not feel particularly strongly about this.  But it seems to me that it
> would make sense to take the same approach as koelsch and lager.

Wolfram, are you planing to handle this one way or another?

> > >From 1b7b851a5d1b7d10f42f68a35b65278827b03cc4 Mon Sep 17 00:00:00 2001
> > From: Geert Uytterhoeven <geert+renesas@glider.be>
> > Date: Mon, 12 May 2014 14:32:25 +0200
> > Subject: [PATCH] ARM: shmobile: genmai-reference: Re-add legacy clocks
> > 
> > genmai-reference still uses non-CCF, so it needs the legacy clocks
> > 
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> >  arch/arm/mach-shmobile/clock-r7s72100.c |   10 ++++++++++
> >  1 file changed, 10 insertions(+)
> > 
> > diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c
> > b/arch/arm/mach-shmobile/clock-r7s72100.c
> > index df187484de5d..1b677e0a69c6 100644
> > --- a/arch/arm/mach-shmobile/clock-r7s72100.c
> > +++ b/arch/arm/mach-shmobile/clock-r7s72100.c
> > @@ -194,6 +194,16 @@ static struct clk_lookup lookups[] = {
> >   CLKDEV_DEV_ID("rspi-rz.2", &mstp_clks[MSTP105]),
> >   CLKDEV_DEV_ID("rspi-rz.3", &mstp_clks[MSTP104]),
> >   CLKDEV_DEV_ID("rspi-rz.4", &mstp_clks[MSTP103]),
> > + CLKDEV_DEV_ID("e800c800.spi", &mstp_clks[MSTP107]),
> > + CLKDEV_DEV_ID("e800d000.spi", &mstp_clks[MSTP106]),
> > + CLKDEV_DEV_ID("e800d800.spi", &mstp_clks[MSTP105]),
> > + CLKDEV_DEV_ID("e800e000.spi", &mstp_clks[MSTP104]),
> > + CLKDEV_DEV_ID("e800e800.spi", &mstp_clks[MSTP103]),
> > + CLKDEV_DEV_ID("fcfee000.i2c", &mstp_clks[MSTP97]),
> > + CLKDEV_DEV_ID("fcfee400.i2c", &mstp_clks[MSTP96]),
> > + CLKDEV_DEV_ID("fcfee800.i2c", &mstp_clks[MSTP95]),
> > + CLKDEV_DEV_ID("fcfeec00.i2c", &mstp_clks[MSTP94]),
> > + CLKDEV_DEV_ID("e8008000.serial", &mstp_clks[MSTP45]),
> >   CLKDEV_DEV_ID("r7s72100-ether", &mstp_clks[MSTP74]),
> > 
> >   /* ICK */
> > -- 
> > 1.7.9.5
> > 
> > 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
> > 
> --
> 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
>
Wolfram Sang May 16, 2014, 6:49 a.m. UTC | #3
> > I do not feel particularly strongly about this.  But it seems to me that it
> > would make sense to take the same approach as koelsch and lager.
> 
> Wolfram, are you planing to handle this one way or another?

I'll check what it takes for the reference removal. Hopefully it is not
too late in the cycle for this?
Simon Horman May 16, 2014, 7:03 a.m. UTC | #4
On Fri, May 16, 2014 at 08:49:38AM +0200, Wolfram Sang wrote:
> > > I do not feel particularly strongly about this.  But it seems to me that it
> > > would make sense to take the same approach as koelsch and lager.
> > 
> > Wolfram, are you planing to handle this one way or another?
> 
> I'll check what it takes for the reference removal. Hopefully it is not
> too late in the cycle for this?

It is my hope that such a change can be treated as a fix and thus it is not
too late.

I suspect that if you look at the reference removal of koelsch and lager,
or the more recent marzen patches, that you should be able to see a pattern
that works for genmai too.
Wolfram Sang May 16, 2014, 8:22 a.m. UTC | #5
> It is my hope that such a change can be treated as a fix and thus it is not
> too late.

Makes sense. Good.

> I suspect that if you look at the reference removal of koelsch and lager,
> or the more recent marzen patches, that you should be able to see a pattern
> that works for genmai too.

Yeah, that was my plan. I'll start after I finished my mails.
diff mbox

Patch

diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c
b/arch/arm/mach-shmobile/clock-r7s72100.c
index df187484de5d..1b677e0a69c6 100644
--- a/arch/arm/mach-shmobile/clock-r7s72100.c
+++ b/arch/arm/mach-shmobile/clock-r7s72100.c
@@ -194,6 +194,16 @@  static struct clk_lookup lookups[] = {
  CLKDEV_DEV_ID("rspi-rz.2", &mstp_clks[MSTP105]),
  CLKDEV_DEV_ID("rspi-rz.3", &mstp_clks[MSTP104]),
  CLKDEV_DEV_ID("rspi-rz.4", &mstp_clks[MSTP103]),
+ CLKDEV_DEV_ID("e800c800.spi", &mstp_clks[MSTP107]),
+ CLKDEV_DEV_ID("e800d000.spi", &mstp_clks[MSTP106]),
+ CLKDEV_DEV_ID("e800d800.spi", &mstp_clks[MSTP105]),
+ CLKDEV_DEV_ID("e800e000.spi", &mstp_clks[MSTP104]),
+ CLKDEV_DEV_ID("e800e800.spi", &mstp_clks[MSTP103]),
+ CLKDEV_DEV_ID("fcfee000.i2c", &mstp_clks[MSTP97]),
+ CLKDEV_DEV_ID("fcfee400.i2c", &mstp_clks[MSTP96]),
+ CLKDEV_DEV_ID("fcfee800.i2c", &mstp_clks[MSTP95]),
+ CLKDEV_DEV_ID("fcfeec00.i2c", &mstp_clks[MSTP94]),
+ CLKDEV_DEV_ID("e8008000.serial", &mstp_clks[MSTP45]),
  CLKDEV_DEV_ID("r7s72100-ether", &mstp_clks[MSTP74]),

  /* ICK */