From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: [PATCH 02/11] irqchip: brcmstb-l2: Eliminate dependency on ARM code Date: Wed, 29 Oct 2014 09:53:13 -0700 Message-ID: <54511B79.9080005@gmail.com> References: <1414555138-6500-1-git-send-email-cernekee@gmail.com> <1414555138-6500-2-git-send-email-cernekee@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1414555138-6500-2-git-send-email-cernekee@gmail.com> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Kevin Cernekee , tglx@linutronix.de, jason@lakedaemon.net, ralf@linux-mips.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mbizon@freebox.fr, jogo@openwrt.org, linux-mips@linux-mips.org List-Id: devicetree@vger.kernel.org On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > The irq-brcmstb-l2 driver has a single dependency on the ARM code, the > do_bad_IRQ macro. Expand this macro in-place so that the driver can be > built on non-ARM platforms. > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fainelli > --- > drivers/irqchip/irq-brcmstb-l2.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/irqchip/irq-brcmstb-l2.c b/drivers/irqchip/irq-brcmstb-l2.c > index c15c840..c9bdf20 100644 > --- a/drivers/irqchip/irq-brcmstb-l2.c > +++ b/drivers/irqchip/irq-brcmstb-l2.c > @@ -19,6 +19,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -30,8 +31,6 @@ > #include > #include > > -#include > - > #include "irqchip.h" > > /* Register offsets in the L2 interrupt controller */ > @@ -63,7 +62,9 @@ static void brcmstb_l2_intc_irq_handle(unsigned int irq, struct irq_desc *desc) > ~(__raw_readl(b->base + CPU_MASK_STATUS)); > > if (status == 0) { > - do_bad_IRQ(irq, desc); > + raw_spin_lock(&desc->lock); > + handle_bad_irq(irq, desc); > + raw_spin_unlock(&desc->lock); > goto out; > } > >