From d5e01e3fd2db04b895d87e4fb83e293b763c0f69 Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 4 May 2007 17:35:58 +0000 Subject: [PATCH] fix gpio interrupts on broadcom (thanks, jpcass) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7090 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/broadcom-diag/src/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/broadcom-diag/src/gpio.h b/package/broadcom-diag/src/gpio.h index 982caddae..16f6ca41c 100644 --- a/package/broadcom-diag/src/gpio.h +++ b/package/broadcom-diag/src/gpio.h @@ -68,7 +68,8 @@ static void gpio_set_irqenable(int enabled, irqreturn_t (*handler)(int, void *, else free_irq(irq, handler); - gpio_intmask(1, (enabled ? 1 : 0)); + if (ssb.chipco.dev) + ssb_write32_masked(ssb.chipco.dev, SSB_CHIPCO_IRQMASK, SSB_CHIPCO_IRQ_GPIO, (enabled ? SSB_CHIPCO_IRQ_GPIO : 0)); } #else -- 2.20.1