Re: [PATCH v2 20/26] irqchip: atmel-aic5: convert to handle_domain_irq

2014-09-01 Thread Boris BREZILLON
On Tue, 26 Aug 2014 11:03:35 +0100
Marc Zyngier  wrote:

> Use the new handle_domain_irq method to handle interrupts.
> 
> Signed-off-by: Marc Zyngier 

Acked-by: Boris Brezillon 

> ---
>  drivers/irqchip/irq-atmel-aic5.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/irqchip/irq-atmel-aic5.c 
> b/drivers/irqchip/irq-atmel-aic5.c
> index edb2270..04fe2c1 100644
> --- a/drivers/irqchip/irq-atmel-aic5.c
> +++ b/drivers/irqchip/irq-atmel-aic5.c
> @@ -78,12 +78,10 @@ aic5_handle(struct pt_regs *regs)
>   irqnr = irq_reg_readl(gc->reg_base + AT91_AIC5_IVR);
>   irqstat = irq_reg_readl(gc->reg_base + AT91_AIC5_ISR);
>  
> - irqnr = irq_find_mapping(aic5_domain, irqnr);
> -
>   if (!irqstat)
>   irq_reg_writel(0, gc->reg_base + AT91_AIC5_EOICR);
>   else
> - handle_IRQ(irqnr, regs);
> + handle_domain_irq(aic5_domain, irqnr, regs);
>  }
>  
>  static void aic5_mask(struct irq_data *d)



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 20/26] irqchip: atmel-aic5: convert to handle_domain_irq

2014-09-01 Thread Nicolas Ferre
On 26/08/2014 12:03, Marc Zyngier :
> Use the new handle_domain_irq method to handle interrupts.
> 
> Signed-off-by: Marc Zyngier 

Ok, thanks:

Acked-by: Nicolas Ferre 

> ---
>  drivers/irqchip/irq-atmel-aic5.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/irqchip/irq-atmel-aic5.c 
> b/drivers/irqchip/irq-atmel-aic5.c
> index edb2270..04fe2c1 100644
> --- a/drivers/irqchip/irq-atmel-aic5.c
> +++ b/drivers/irqchip/irq-atmel-aic5.c
> @@ -78,12 +78,10 @@ aic5_handle(struct pt_regs *regs)
>   irqnr = irq_reg_readl(gc->reg_base + AT91_AIC5_IVR);
>   irqstat = irq_reg_readl(gc->reg_base + AT91_AIC5_ISR);
>  
> - irqnr = irq_find_mapping(aic5_domain, irqnr);
> -
>   if (!irqstat)
>   irq_reg_writel(0, gc->reg_base + AT91_AIC5_EOICR);
>   else
> - handle_IRQ(irqnr, regs);
> + handle_domain_irq(aic5_domain, irqnr, regs);
>  }
>  
>  static void aic5_mask(struct irq_data *d)
> 


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 20/26] irqchip: atmel-aic5: convert to handle_domain_irq

2014-09-01 Thread Nicolas Ferre
On 26/08/2014 12:03, Marc Zyngier :
 Use the new handle_domain_irq method to handle interrupts.
 
 Signed-off-by: Marc Zyngier marc.zyng...@arm.com

Ok, thanks:

Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

 ---
  drivers/irqchip/irq-atmel-aic5.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
 
 diff --git a/drivers/irqchip/irq-atmel-aic5.c 
 b/drivers/irqchip/irq-atmel-aic5.c
 index edb2270..04fe2c1 100644
 --- a/drivers/irqchip/irq-atmel-aic5.c
 +++ b/drivers/irqchip/irq-atmel-aic5.c
 @@ -78,12 +78,10 @@ aic5_handle(struct pt_regs *regs)
   irqnr = irq_reg_readl(gc-reg_base + AT91_AIC5_IVR);
   irqstat = irq_reg_readl(gc-reg_base + AT91_AIC5_ISR);
  
 - irqnr = irq_find_mapping(aic5_domain, irqnr);
 -
   if (!irqstat)
   irq_reg_writel(0, gc-reg_base + AT91_AIC5_EOICR);
   else
 - handle_IRQ(irqnr, regs);
 + handle_domain_irq(aic5_domain, irqnr, regs);
  }
  
  static void aic5_mask(struct irq_data *d)
 


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 20/26] irqchip: atmel-aic5: convert to handle_domain_irq

2014-09-01 Thread Boris BREZILLON
On Tue, 26 Aug 2014 11:03:35 +0100
Marc Zyngier marc.zyng...@arm.com wrote:

 Use the new handle_domain_irq method to handle interrupts.
 
 Signed-off-by: Marc Zyngier marc.zyng...@arm.com

Acked-by: Boris Brezillon boris.brezil...@free-electrons.com

 ---
  drivers/irqchip/irq-atmel-aic5.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
 
 diff --git a/drivers/irqchip/irq-atmel-aic5.c 
 b/drivers/irqchip/irq-atmel-aic5.c
 index edb2270..04fe2c1 100644
 --- a/drivers/irqchip/irq-atmel-aic5.c
 +++ b/drivers/irqchip/irq-atmel-aic5.c
 @@ -78,12 +78,10 @@ aic5_handle(struct pt_regs *regs)
   irqnr = irq_reg_readl(gc-reg_base + AT91_AIC5_IVR);
   irqstat = irq_reg_readl(gc-reg_base + AT91_AIC5_ISR);
  
 - irqnr = irq_find_mapping(aic5_domain, irqnr);
 -
   if (!irqstat)
   irq_reg_writel(0, gc-reg_base + AT91_AIC5_EOICR);
   else
 - handle_IRQ(irqnr, regs);
 + handle_domain_irq(aic5_domain, irqnr, regs);
  }
  
  static void aic5_mask(struct irq_data *d)



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 20/26] irqchip: atmel-aic5: convert to handle_domain_irq

2014-08-26 Thread Marc Zyngier
Use the new handle_domain_irq method to handle interrupts.

Signed-off-by: Marc Zyngier 
---
 drivers/irqchip/irq-atmel-aic5.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c
index edb2270..04fe2c1 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -78,12 +78,10 @@ aic5_handle(struct pt_regs *regs)
irqnr = irq_reg_readl(gc->reg_base + AT91_AIC5_IVR);
irqstat = irq_reg_readl(gc->reg_base + AT91_AIC5_ISR);
 
-   irqnr = irq_find_mapping(aic5_domain, irqnr);
-
if (!irqstat)
irq_reg_writel(0, gc->reg_base + AT91_AIC5_EOICR);
else
-   handle_IRQ(irqnr, regs);
+   handle_domain_irq(aic5_domain, irqnr, regs);
 }
 
 static void aic5_mask(struct irq_data *d)
-- 
2.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 20/26] irqchip: atmel-aic5: convert to handle_domain_irq

2014-08-26 Thread Marc Zyngier
Use the new handle_domain_irq method to handle interrupts.

Signed-off-by: Marc Zyngier marc.zyng...@arm.com
---
 drivers/irqchip/irq-atmel-aic5.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c
index edb2270..04fe2c1 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -78,12 +78,10 @@ aic5_handle(struct pt_regs *regs)
irqnr = irq_reg_readl(gc-reg_base + AT91_AIC5_IVR);
irqstat = irq_reg_readl(gc-reg_base + AT91_AIC5_ISR);
 
-   irqnr = irq_find_mapping(aic5_domain, irqnr);
-
if (!irqstat)
irq_reg_writel(0, gc-reg_base + AT91_AIC5_EOICR);
else
-   handle_IRQ(irqnr, regs);
+   handle_domain_irq(aic5_domain, irqnr, regs);
 }
 
 static void aic5_mask(struct irq_data *d)
-- 
2.0.4

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/