summaryrefslogtreecommitdiff
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-31 01:33:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-31 01:33:14 +0000
commit1081dbcb41f1e9e282cae39c96268fb668aec1ec (patch)
tree1b658d1118edf9f0935f52ac2e64ed5e65de1d21 /package/broadcom-diag
parenta2c17f1bc53809a9d9d7dd7ce36c4eda8d1fcd1e (diff)
downloadmtk-20170518-1081dbcb41f1e9e282cae39c96268fb668aec1ec.zip
mtk-20170518-1081dbcb41f1e9e282cae39c96268fb668aec1ec.tar.gz
mtk-20170518-1081dbcb41f1e9e282cae39c96268fb668aec1ec.tar.bz2
broadcom-diag: reset the interrupt mask of configured leds to avoid spurious interrupts
SVN-Revision: 12030
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 8f2a0c1..cde681a 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -1087,6 +1087,7 @@ static void register_leds(struct led_t *l)
gpio_outen(mask, oe_mask);
gpio_control(mask, 0);
gpio_out(mask, val);
+ gpio_intmask(mask, 0);
}
static void unregister_leds(struct led_t *l)