diff options
author | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-12-03 21:45:57 +0100 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-12-03 21:45:57 +0100 |
commit | 991caaf0379adb82413c70f00dc0c046eff0836a (patch) | |
tree | d98e371d9a0c59a04e9ec5484423959f76e6c47f | |
parent | 5c030ac5b0019a937d7f6bf6b77ee2587c4081dc (diff) |
fix further span/port confusion
-rw-r--r-- | xhfc/xhfc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xhfc/xhfc.c b/xhfc/xhfc.c index a0d61f1..3f62d60 100644 --- a/xhfc/xhfc.c +++ b/xhfc/xhfc.c @@ -571,13 +571,13 @@ irqreturn_t xhfc_interrupt(int irq, void *dev_id, struct pt_regs* ptregs) if (misc_irq & M_TI_IRQMSK) xhfc->ticks++; - /* - for(i = 0; i < SPANS_PER_CHIP; i++) - fifo_irq |= (read_xhfc(xhfc, R_FIFO_BL0_IRQ + i) | - read_xhfc(xhfc, R_FILL_BL0 + i)) << (i * 8); + for(i = SPANS_PER_CHIP; i; i--) { + fifo_irq |= read_xhfc(xhfc, R_FIFO_BL0_IRQ + i); + fifo_irq |= read_xhfc(xhfc, R_FILL_BL0 + i) + fifo_irq << 8; + } if(DBG_HDLC && fifo_irq) printk(KERN_INFO DRIVER_NAME ": fifo_irq=0x%08x\n", fifo_irq); - */ for (i = 0; i < SPANS_PER_CHIP; i++) { @@ -911,7 +911,7 @@ void init_spans(struct xhfc* x) DAHDI_CONFIG_AMI | DAHDI_CONFIG_CCS ; sprintf(dahdi_span->name, "XHFC/%d", i+1); - sprintf(dahdi_span->desc, "XHFC Span %d", i+1); + sprintf(dahdi_span->desc, "XHFC port %d", i+1); dahdi_span->manufacturer = "Avencall"; dahdi_copy_string(dahdi_span->devicetype, "XHFC-4SU", sizeof(dahdi_span->devicetype)); |