The i82527 bus status status change interrupt is now reported and cleared.
authorppisa <ppisa>
Fri, 4 Nov 2005 16:25:00 +0000 (16:25 +0000)
committerppisa <ppisa>
Fri, 4 Nov 2005 16:25:00 +0000 (16:25 +0000)
This should fix reported "i82527_irq_handler IRQ 29 stuck" message.

lincan/src/i82527.c

index 5ef9d8f..eb89220 100644 (file)
@@ -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;*/
                }