From: Mubin Usman Sayyed <MUBINUSM@xilinx.com>
To: Michal Simek <michals@xilinx.com>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"jason@lakedaemon.net" <jason@lakedaemon.net>,
"maz@kernel.org" <maz@kernel.org>,
Michal Simek <michals@xilinx.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Siva Durga Prasad Paladugu <sivadur@xilinx.com>,
Anirudha Sarangi <anirudh@xilinx.com>
Subject: RE: [PATCH] irqchip: xilinx: Add support for multiple instances
Date: Tue, 4 Feb 2020 19:08:36 +0000 [thread overview]
Message-ID: <MN2PR02MB5727F3B9694669B10D25E841A1030@MN2PR02MB5727.namprd02.prod.outlook.com> (raw)
In-Reply-To: <28c517f7-9cff-f897-c5a9-2216dd769c64@xilinx.com>
Hi Michal,
> -----Original Message-----
> From: Michal Simek <michal.simek@xilinx.com>
> Sent: Friday, January 31, 2020 8:06 PM
> To: Mubin Usman Sayyed <MUBINUSM@xilinx.com>; tglx@linutronix.de;
> jason@lakedaemon.net; maz@kernel.org; Michal Simek
> <michals@xilinx.com>; linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org; Siva Durga Prasad Paladugu
> <sivadur@xilinx.com>; Anirudha Sarangi <anirudh@xilinx.com>
> Subject: Re: [PATCH] irqchip: xilinx: Add support for multiple instances
>
> On 31. 01. 20 15:18, Mubin Usman Sayyed wrote:
> > From: Mubin Sayyed <mubin.usman.sayyed@xilinx.com>
> >
> > This patch adds support for multiple instances of xilinx interrupt
> > controller. Below configurations are supported by driver,
> >
> > - peripheral->xilinx-intc->xilinx-intc->gic
> > - peripheral->xilinx-intc->xilinx-intc
> >
> > Signed-off-by: Anirudha Sarangi <anirudha.sarangi@xilinx.com>
> > Signed-off-by: Mubin Sayyed <mubin.usman.sayyed@xilinx.com>
> > ---
> > drivers/irqchip/irq-xilinx-intc.c | 143
> > +++++++++++++++++++++++---------------
> > 1 file changed, 87 insertions(+), 56 deletions(-)
> >
> > diff --git a/drivers/irqchip/irq-xilinx-intc.c
> > b/drivers/irqchip/irq-xilinx-intc.c
> > index e3043de..43d6e4e 100644
> > --- a/drivers/irqchip/irq-xilinx-intc.c
> > +++ b/drivers/irqchip/irq-xilinx-intc.c
> > @@ -15,10 +15,11 @@
> > #include <linux/irqchip/chained_irq.h> #include <linux/of_address.h>
> > #include <linux/io.h> -#include <linux/jump_label.h> #include
> > <linux/bug.h> #include <linux/of_irq.h>
> >
> > +static struct xintc_irq_chip *primary_intc;
>
> nit: please place it below xintc_irq_chip.
[Mubin]: I will fix it in v2.
>
> > +
> > /* No one else should require these constants, so define them locally
> here. */
> > #define ISR 0x00 /* Interrupt Status Register */
> > #define IPR 0x04 /* Interrupt Pending Register */
> > @@ -32,35 +33,40 @@
> > #define MER_ME (1<<0)
> > #define MER_HIE (1<<1)
> >
> > -static DEFINE_STATIC_KEY_FALSE(xintc_is_be);
>
> I am playing with this driver a little bit now and I pretty much dislike remove
> this. I haven't see any configuration which mixes little and big endian
> together. That's why I prefer not to create read_fn/write_fn hooks.
[Mubin]: Agreed, I will remove read_fn/write_fn and use xintc_is_be in v2.
Thanks,
Mubin
>
> Thanks,
> Michal
prev parent reply other threads:[~2020-02-04 19:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-31 14:18 [PATCH] irqchip: xilinx: Add support for multiple instances Mubin Usman Sayyed
2020-01-31 14:35 ` Michal Simek
2020-02-04 19:08 ` Mubin Usman Sayyed [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=MN2PR02MB5727F3B9694669B10D25E841A1030@MN2PR02MB5727.namprd02.prod.outlook.com \
--to=mubinusm@xilinx.com \
--cc=anirudh@xilinx.com \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=michals@xilinx.com \
--cc=sivadur@xilinx.com \
--cc=tglx@linutronix.de \
/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).