Date:2013-04-01 17:48:30 (6 years 8 months ago)
Author:Werner Almesberger
Commit:60ee82ba937435a1fdd2b3ed3a759382887559c7
Message:atusb/fw/mac.c (handle_irq): only handle TRX_END; never fall back to seq ints

Files: atusb/fw/mac.c (2 diffs)

Change Details

atusb/fw/mac.c
7070    uint8_t size, i;
7171
7272    irq = reg_read(REG_IRQ_STATUS);
73    if (!(irq & IRQ_TRX_END))
74        return 1;
75
7376    if (txing) {
7477        if (eps[1].state == EP_IDLE)
7578            usb_send(&eps[1], "", 1, rx_done, NULL);
...... 
7982            queued_tx_ack = 1;
8083        }
8184        txing = 0;
82        return 0;
83    }
84
85    if (!(irq & IRQ_TRX_END))
8685        return 1;
86    }
8787
8888    /* unlikely */
8989    if (eps[1].state != EP_IDLE)

Archive Download the corresponding diff file



interactive