SUPERH platform development
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v2 2/2] ARM: shmobile: koelsch-reference: Add DU device
Date: Sun, 16 Feb 2014 21:20:59 +0000	[thread overview]
Message-ID: <11416943.JBCq9eQEgh@avalon> (raw)
In-Reply-To: <1392398441-9560-3-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hi Geert,

Thank you for the review.

On Saturday 15 February 2014 14:28:10 Geert Uytterhoeven wrote:
> On Fri, Feb 14, 2014 at 6:20 PM, Laurent Pinchart wrote:
> > static void __init koelsch_add_standard_devices(void)
> >  {
> >  #ifdef CONFIG_COMMON_CLK
> >         /*
> > -        * This is a really crude hack to provide clkdev support to the
> > SCIF
> > -        * and CMT devices until they get moved to DT.
> > +        * This is a really crude hack to provide clkdev support to the
> > CMT and
> > +        * DU devices until they get moved to DT.
> >          */
> > -       static const char * const scif_names[] = {
> > -               "scifa0", "scifa1", "scifb0", "scifb1", "scifb2",
> > "scifa2",
> > -               "scif0", "scif1", "scif2", "scif3", "scif4", "scif5",
> > "scifa3", -               "scifa4", "scifa5",
> > +       static const struct clk_name {
> > +               const char *clk;
> > +               const char *con_id;
> > +               const char *dev_id;
> > +       } clk_names[] = {
> > +               { "cmt0", NULL, "sh_cmt.0" },
> > +               { "scifa0", NULL, "sh-sci.0" },
> > +               { "scifa1", NULL, "sh-sci.1" },
> > +               { "scifb0", NULL, "sh-sci.2" },
> > +               { "scifb1", NULL, "sh-sci.3" },
> > +               { "scifb2", NULL, "sh-sci.4" },
> > +               { "scifa2", NULL, "sh-sci.5" },
> > +               { "scif0", NULL, "sh-sci.6" },
> > +               { "scif1", NULL, "sh-sci.7" },
> > +               { "scif2", NULL, "sh-sci.8" },
> > +               { "scif3", NULL, "sh-sci.9" },
> > +               { "scif4", NULL, "sh-sci.10" },
> > +               { "scif5", NULL, "sh-sci.11" },
> > +               { "scifa3", NULL, "sh-sci.12" },
> > +               { "scifa4", NULL, "sh-sci.13" },
> > +               { "scifa5", NULL, "sh-sci.14" },
> > +               { "du0", "du.0", "rcar-du-r8a7791" },
> > +               { "du1", "du.1", "rcar-du-r8a7791" },
> > +               { "lvds0", "lvds.0", "rcar-du-r8a7791" },
> >         };
> >         struct clk *clk;
> >         unsigned int i;
> > 
> > -       for (i = 0; i < ARRAY_SIZE(scif_names); ++i) {
> > -               clk = clk_get(NULL, scif_names[i]);
> > +       for (i = 0; i < ARRAY_SIZE(clk_names); ++i) {
> > +               clk = clk_get(NULL, clk_names[i].clk);
> >                 if (!IS_ERR(clk)) {
> > -                       clk_register_clkdev(clk, NULL, "sh-sci.%u", i);
> > +                       clk_register_clkdev(clk, clk_names[i].con_id,
> > +                                           clk_names[i].dev_id);
> >                         clk_put(clk);
> >                 }
> >         }
> > -
> > -       clk = clk_get(NULL, "cmt0");
> > -       if (!IS_ERR(clk)) {
> > -               clk_register_clkdev(clk, NULL, "sh_cmt.0");
> > -               clk_put(clk);
> > -       }
> 
> You may want to split off the refactoring of the clock registration, so it's
> more obvious that you're just adding the few du* entries here.

OK, I'll resubmit the set.

-- 
Regards,

Laurent Pinchart


      parent reply	other threads:[~2014-02-16 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 17:20 [PATCH v2 2/2] ARM: shmobile: koelsch-reference: Add DU device Laurent Pinchart
2014-02-15 13:28 ` Geert Uytterhoeven
2014-02-16 21:20 ` Laurent Pinchart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11416943.JBCq9eQEgh@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox