Commit 0ce4bbbc authored by Gilles Chanteperdrix's avatar Gilles Chanteperdrix Committed by Jan Kiszka
Browse files

gpio: davinci: ipipe: enable interrupt pipelining

Fix up the Davinci GPIO driver in order to channel interrupts through
the interrupt pipeline.
parent c01d12bd
......@@ -22,7 +22,7 @@
#include <linux/platform_data/gpio-davinci.h>
#include <linux/irqchip/chained_irq.h>
#include <linux/spinlock.h>
#include <linux/ipipe.h>
#include <asm-generic/gpio.h>
#define MAX_REGS_BANKS 5
......@@ -333,7 +333,7 @@ static struct irq_chip gpio_irqchip = {
.irq_enable = gpio_irq_enable,
.irq_disable = gpio_irq_disable,
.irq_set_type = gpio_irq_type,
.flags = IRQCHIP_SET_TYPE_MASKED,
.flags = IRQCHIP_SET_TYPE_MASKED | IRQCHIP_PIPELINE_SAFE,
};
static void gpio_irq_handler(struct irq_desc *desc)
......@@ -376,7 +376,7 @@ static void gpio_irq_handler(struct irq_desc *desc)
*/
hw_irq = (bank_num / 2) * 32 + bit;
generic_handle_irq(
ipipe_handle_demuxed_irq(
irq_find_mapping(d->irq_domain, hw_irq));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment