diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-04 17:35:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-04 17:35:58 +0000 |
commit | a1206669e893f6c3d69b789531a23e5116b48083 (patch) | |
tree | 2ccb601a10c309c2c1fe1220f25ce26b21463fc8 | |
parent | e22255fcebddb6cba283d7f71e85fbcf789d1a6a (diff) | |
download | mtk-20170518-a1206669e893f6c3d69b789531a23e5116b48083.zip mtk-20170518-a1206669e893f6c3d69b789531a23e5116b48083.tar.gz mtk-20170518-a1206669e893f6c3d69b789531a23e5116b48083.tar.bz2 |
fix gpio interrupts on broadcom (thanks, jpcass)
SVN-Revision: 7090
-rw-r--r-- | package/broadcom-diag/src/gpio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/gpio.h b/package/broadcom-diag/src/gpio.h index 982cadd..16f6ca4 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 |