summaryrefslogtreecommitdiff
path: root/xhfc
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@proformatique.com>2010-12-09 19:45:16 +0100
committerNoe Rubinstein <nrubinstein@proformatique.com>2010-12-09 19:45:16 +0100
commitd211c83eed1dbf83e004a842ce3aa8bf1766b310 (patch)
treee57f97b988fb2d3452983b3470588f9710ea16f9 /xhfc
parent0594bf37825d4a6ceea08c8300c78bb5a94741e8 (diff)
don't rx/tx if alarm
Diffstat (limited to 'xhfc')
-rw-r--r--xhfc/xhfc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xhfc/xhfc.c b/xhfc/xhfc.c
index 9eebf20..2b22460 100644
--- a/xhfc/xhfc.c
+++ b/xhfc/xhfc.c
@@ -570,7 +570,8 @@ irqreturn_t xhfc_interrupt(int irq, void *dev_id, struct pt_regs* ptregs)
for (i = 0; i < SPANS_PER_CHIP; i++) {
struct xhfc_span* s = &xhfc->spans[i];
- if ((s->span.flags & DAHDI_FLAG_RUNNING) && s->sigchan) {
+ if ((s->span.flags & DAHDI_FLAG_RUNNING) && s->sigchan &&
+ s->span.alarms == DAHDI_ALARM_NONE) {
/* No need to loop, makes no sense to receive
* more than one HDLC frame per second.