linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 1/3] pinctrl: sh-pfc: Remove hardcoded IRQ numbers
Date: Tue, 22 Sep 2015 07:00:28 +0000	[thread overview]
Message-ID: <3252149.h0VXqpp3so@avalon> (raw)
In-Reply-To: <1440797837-25516-2-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hi Geert,

On Monday 21 September 2015 14:20:20 Geert Uytterhoeven wrote:
> On Fri, Aug 28, 2015 at 11:37 PM, Laurent Pinchart wrote:
> > Now that all ARM-based Renesas SoCs use multiplatform kernels only the
> > hardcoded IRQ numbers can be dropped as they're dynamically allocated.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> 
> Thanks for your patch!
> 
> > ---
> > 
> >  drivers/pinctrl/sh-pfc/pfc-r8a73a4.c | 116  ++++++++++++++---------------
> >  drivers/pinctrl/sh-pfc/pfc-r8a7740.c |  68 ++++++++++----------
> >  drivers/pinctrl/sh-pfc/pfc-sh73a0.c  |  68 ++++++++++----------
> >  drivers/pinctrl/sh-pfc/sh_pfc.h      |   7 +--
> >  4 files changed, 123 insertions(+), 136 deletions(-)
> > 
> > --- a/drivers/pinctrl/sh-pfc/sh_pfc.h
> > +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
> > @@ -100,13 +100,8 @@ struct pinmux_irq {
> 
> Can you please also remove the "int irq" field that fell out of the diff
> context above, as it's now always zero?
> 
> Should gpio_pin_to_irq() now always return "pfc->irqs[i]", i.e. can we
> remove the check for "pfc->num_irqs", or is there a good reason to keep the
> check and return 0?

Sure, thank you for catching this.

> >         const short *gpios;
> >  };
> > 
> > -#ifdef CONFIG_ARCH_MULTIPLATFORM
> > -#define PINMUX_IRQ(irq_nr, ids...)                        \
> > +#define PINMUX_IRQ(ids...)                        \
> >         { .gpios = (const short []) { ids, -1 } }
> > -#else
> > -#define PINMUX_IRQ(irq_nr, ids...)                        \
> > -       { .irq = irq_nr, .gpios = (const short []) { ids, -1 } }
> > -#endif

-- 
Regards,

Laurent Pinchart


      parent reply	other threads:[~2015-09-22  7:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-28 21:37 [PATCH 1/3] pinctrl: sh-pfc: Remove hardcoded IRQ numbers Laurent Pinchart
2015-09-21 12:20 ` Geert Uytterhoeven
2015-09-22  7:00 ` 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=3252149.h0VXqpp3so@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;
as well as URLs for NNTP newsgroup(s).