aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-renesas-intc-irqpin.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-02-26 06:59:04 -0500
committerSimon Horman <horms+renesas@verge.net.au>2013-03-18 08:26:06 -0400
commitd1b6aecde4ab146d115abcaf3bb1940d8e980b5a (patch)
treedbc0704ddab0921479134afd50a5d21f8106873a /drivers/irqchip/irq-renesas-intc-irqpin.c
parent33f958f2a71c44164698d1cae5463c0b85296a2c (diff)
irqchip: intc-irqpin: Add force comments
Add comments to describe the special case for "force" versions of enable and disable functions. Signed-off-by: Magnus Damm <damm@opensource.se> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/irqchip/irq-renesas-intc-irqpin.c')
-rw-r--r--drivers/irqchip/irq-renesas-intc-irqpin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c
index 0ac2bf683378..59c0cbccf212 100644
--- a/drivers/irqchip/irq-renesas-intc-irqpin.c
+++ b/drivers/irqchip/irq-renesas-intc-irqpin.c
@@ -199,6 +199,11 @@ static void intc_irqpin_irq_enable_force(struct irq_data *d)
199 int irq = p->irq[irqd_to_hwirq(d)].requested_irq; 199 int irq = p->irq[irqd_to_hwirq(d)].requested_irq;
200 200
201 intc_irqpin_irq_enable(d); 201 intc_irqpin_irq_enable(d);
202
203 /* enable interrupt through parent interrupt controller,
204 * assumes non-shared interrupt with 1:1 mapping
205 * needed for busted IRQs on some SoCs like sh73a0
206 */
202 irq_get_chip(irq)->irq_unmask(irq_get_irq_data(irq)); 207 irq_get_chip(irq)->irq_unmask(irq_get_irq_data(irq));
203} 208}
204 209
@@ -207,6 +212,10 @@ static void intc_irqpin_irq_disable_force(struct irq_data *d)
207 struct intc_irqpin_priv *p = irq_data_get_irq_chip_data(d); 212 struct intc_irqpin_priv *p = irq_data_get_irq_chip_data(d);
208 int irq = p->irq[irqd_to_hwirq(d)].requested_irq; 213 int irq = p->irq[irqd_to_hwirq(d)].requested_irq;
209 214
215 /* disable interrupt through parent interrupt controller,
216 * assumes non-shared interrupt with 1:1 mapping
217 * needed for busted IRQs on some SoCs like sh73a0
218 */
210 irq_get_chip(irq)->irq_mask(irq_get_irq_data(irq)); 219 irq_get_chip(irq)->irq_mask(irq_get_irq_data(irq));
211 intc_irqpin_irq_disable(d); 220 intc_irqpin_irq_disable(d);
212} 221}