Date:2011-06-21 01:48:15 (12 years 9 months ago)
Author:Werner Almesberger
Commit:76707d6b378a70fe4fb33d9d3a5e39bfa2fcb1ca
Message:tools/lib/misctxrx.c (flush_interrupts): don't fall back to reading IRQ_STATUS

We now implement atrf_interrupt_wait in all drivers and don't need
the dubious fallback anymore.
Files: tools/lib/misctxrx.c (1 diff)

Change Details

tools/lib/misctxrx.c
4141
4242void flush_interrupts(struct atrf_dsc *dsc)
4343{
44    /*
45     * If the driver doesn't support atrf_interrupt_wait, we use
46     * atrf_reg_read.
47     */
48    if (atrf_interrupt_wait(dsc, 1) < 0)
49        atrf_reg_read(dsc, REG_IRQ_STATUS);
44    int res;
45
46    res = atrf_interrupt_wait(dsc, 1);
47    if (res < 0) {
48        fprintf(stderr, "atrf_interrupt_wait returns %d\n", res);
49        exit(1);
50    }
5051}
5152
5253

Archive Download the corresponding diff file



interactive