[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM3PR04MB118566A013D838C6E7E17D90919C0@AM3PR04MB1185.eurprd04.prod.outlook.com>
Date: Fri, 16 Dec 2016 08:43:49 +0000
From: Qiang Zhao <qiang.zhao@....com>
To: Marc Zyngier <marc.zyngier@....com>,
"oss@...error.net" <oss@...error.net>,
"tglx@...utronix.de" <tglx@...utronix.de>
CC: "jason@...edaemon.net" <jason@...edaemon.net>,
Xiaobo Xie <xiaobo.xie@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>
Subject: RE: [PATCH v6 2/4] irqchip/qeic: merge qeic init code from platforms
to a common function
On 16/12/16 04:33, Marc Zyngier <marc.zyngier@....com> wrote:
> -----Original Message-----
> From: Marc Zyngier [mailto:marc.zyngier@....com]
> Sent: Friday, December 16, 2016 4:33 PM
> To: Qiang Zhao <qiang.zhao@....com>; oss@...error.net; tglx@...utronix.de
> Cc: jason@...edaemon.net; Xiaobo Xie <xiaobo.xie@....com>; linux-
> kernel@...r.kernel.org; linuxppc-dev@...ts.ozlabs.org
> Subject: Re: [PATCH v6 2/4] irqchip/qeic: merge qeic init code from platforms to
> a common function
>
> On 28/09/16 04:25, Zhao Qiang wrote:
> > The codes of qe_ic init from a variety of platforms are redundant,
> > merge them to a common function and put it to irqchip/irq-qeic.c
> >
> > For non-p1021_mds mpc85xx_mds boards, use "qe_ic_init(np, 0,
> > qe_ic_cascade_low_mpic, qe_ic_cascade_high_mpic);" instead of
> > "qe_ic_init(np, 0, qe_ic_cascade_muxed_mpic, NULL);".
> >
> > qe_ic_cascade_muxed_mpic was used for boards has the same interrupt
> > number for low interrupt and high interrupt, qe_ic_init has checked if
> > "low interrupt == high interrupt"
> >
> > Signed-off-by: Zhao Qiang <qiang.zhao@....com>
> > ---
> > Changes for v2:
> > - modify subject and commit msg
> > - add check for qeic by type
> > Changes for v3:
> > - na
> > Changes for v4:
> > - na
> > Changes for v5:
> > - na
> > Changes for v6:
> > - rebase
> >
> > arch/powerpc/platforms/83xx/misc.c | 15 ---------------
> > arch/powerpc/platforms/85xx/corenet_generic.c | 9 ---------
> > arch/powerpc/platforms/85xx/mpc85xx_mds.c | 14 --------------
> > arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 16 ----------------
> > arch/powerpc/platforms/85xx/twr_p102x.c | 14 --------------
> > drivers/irqchip/irq-qeic.c | 16 ++++++++++++++++
> > 6 files changed, 16 insertions(+), 68 deletions(-)
> >
>
> [...]
>
> > --- a/drivers/irqchip/irq-qeic.c
> > +++ b/drivers/irqchip/irq-qeic.c
> > @@ -598,4 +598,20 @@ static int __init init_qe_ic_sysfs(void)
> > return 0;
> > }
> >
> > +static int __init qeic_of_init(void)
> > +{
> > + struct device_node *np;
> > +
> > + np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic");
> > + if (!np) {
> > + np = of_find_node_by_type(NULL, "qeic");
> > + if (!np)
> > + return;
> > + }
> > + qe_ic_init(np, 0, qe_ic_cascade_low_mpic,
> > + qe_ic_cascade_high_mpic);
> > + of_node_put(np);
> > +}
>
> Have you actually compiled that code?
Yes.
Best Regards
Zhao Qiang
Powered by blists - more mailing lists