From 0834f9f07631a8857a96614e37cb21e1dc84ffb4 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 25 Feb 2016 10:14:05 +0000 Subject: brcm2708: remove linux 4.1 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas SVN-Revision: 48766 --- ...2835-Clear-the-event-latch-register-when-.patch | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 target/linux/brcm2708/patches-4.1/0148-pinctrl-bcm2835-Clear-the-event-latch-register-when-.patch (limited to 'target/linux/brcm2708/patches-4.1/0148-pinctrl-bcm2835-Clear-the-event-latch-register-when-.patch') diff --git a/target/linux/brcm2708/patches-4.1/0148-pinctrl-bcm2835-Clear-the-event-latch-register-when-.patch b/target/linux/brcm2708/patches-4.1/0148-pinctrl-bcm2835-Clear-the-event-latch-register-when-.patch deleted file mode 100644 index 98bdd633f8..0000000000 --- a/target/linux/brcm2708/patches-4.1/0148-pinctrl-bcm2835-Clear-the-event-latch-register-when-.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 40ee1dabb8df5411a688fe483f25358d8f142884 Mon Sep 17 00:00:00 2001 -From: Jonathan Bell -Date: Tue, 30 Jun 2015 12:35:39 +0100 -Subject: [PATCH 148/222] pinctrl: bcm2835: Clear the event latch register when - disabling interrupts - -It's possible to hit a race condition if interrupts are generated on a GPIO -pin when the IRQ line in question is being disabled. - -If the interrupt is freed, bcm2835_gpio_irq_disable() is called which -disables the event generation sources (edge, level). If an event occurred -between the last disabling of hard IRQs and the write to the event -source registers, a bit would be set in the GPIO event detect register -(GPEDSn) which goes unacknowledged by bcm2835_gpio_irq_handler() -so Linux complains loudly. - -There is no per-GPIO mask register, so when disabling GPIO interrupts -write 1 to the relevant bit in GPEDSn to clear out any stale events. - -Signed-off-by: Jonathan Bell -Acked-by: Stephen Warren -Signed-off-by: Linus Walleij ---- - drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 ++ - 1 file changed, 2 insertions(+) - ---- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c -+++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c -@@ -503,6 +503,8 @@ static void bcm2835_gpio_irq_disable(str - - spin_lock_irqsave(&pc->irq_lock[bank], flags); - bcm2835_gpio_irq_config(pc, gpio, false); -+ /* Clear events that were latched prior to clearing event sources */ -+ bcm2835_gpio_set_bit(pc, GPEDS0, gpio); - clear_bit(offset, &pc->enabled_irq_map[bank]); - spin_unlock_irqrestore(&pc->irq_lock[bank], flags); - } -- cgit v1.2.3