[PATCH 2/2] [bcm2708] GpioLib Counter increment added to GPIO interrupt handler V2

Federico Fuga fuga at studiofuga.com
Wed May 28 03:17:49 PDT 2014


This patch adds a call to gpio_counter_inc() in the GPIO interrupt handler
of the bcm2708 gpio driver.

Signed-off-by: Federico Fuga <fuga at studiofuga.com>
---
 arch/arm/mach-bcm2708/bcm2708_gpio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-bcm2708/bcm2708_gpio.c b/arch/arm/mach-bcm2708/bcm2708_gpio.c
index bab8a49..ea40769 100644
--- a/arch/arm/mach-bcm2708/bcm2708_gpio.c
+++ b/arch/arm/mach-bcm2708/bcm2708_gpio.c
@@ -244,6 +244,7 @@ static irqreturn_t bcm2708_gpio_interrupt(int irq, void *dev_id)
 		edsr = readl(__io_address(GPIO_BASE) + GPIOEDS(bank));
 		for_each_set_bit(i, &edsr, 32) {
 			gpio = i + bank * 32;
+			gpio_counter_inc(gpio);
 			generic_handle_irq(gpio_to_irq(gpio));
 		}
 		writel(0xffffffff, __io_address(GPIO_BASE) + GPIOEDS(bank));
-- 
1.9.1




More information about the linux-rpi-kernel mailing list