From: ppisa Date: Fri, 4 Nov 2005 16:25:00 +0000 (+0000) Subject: The i82527 bus status status change interrupt is now reported and cleared. X-Git-Tag: CLT_COMM_CAN-lincan-0_3_2~9 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/commitdiff_plain/76d3b76ac7a3757fd794a688888c0c21db6c284a The i82527 bus status status change interrupt is now reported and cleared. This should fix reported "i82527_irq_handler IRQ 29 stuck" message. --- diff --git a/lincan/src/i82527.c b/lincan/src/i82527.c index 5ef9d8f..eb89220 100644 --- a/lincan/src/i82527.c +++ b/lincan/src/i82527.c @@ -632,6 +632,7 @@ int i82527_irq_handler(int irq, struct canchip_t *chip) unsigned char msgcfg; unsigned irq_register; + unsigned status_register; unsigned object; struct msgobj_t *obj; int loop_cnt=CHIP_MAX_IRQLOOP; @@ -658,7 +659,8 @@ int i82527_irq_handler(int irq, struct canchip_t *chip) DEBUGMSG("i82527: iIRQ 0x%02x\n",irq_register); if (irq_register == 0x01) { - DEBUGMSG("Status register: 0x%x\n",can_read_reg(chip, iSTAT)); + status_register=can_read_reg(chip, iSTAT); + CANMSG("Status register: 0x%x\n",status_register); continue; /*return CANCHIP_IRQ_NONE;*/ }