Date:2011-03-11 21:45:45 (8 years 3 months ago)
Author:Werner Almesberger
Commit:e5571a26c3fe4bc023f27234d8dfe4d67bfe7eed
Message:atusb/fw/usb/atu2.c (handle_ep): cancel RX/TX if we receive a SETUP

Files: atusb/fw/usb/atu2.c (2 diffs)

Change Details

atusb/fw/usb/atu2.c
131131    UENUM = n;
132132    if (UEINTX & (1 << RXSTPI)) {
133133        /* @@@ EP_RX. EP_TX: cancel */
134        ep->state = EP_IDLE;
134135        if (!ep_setup())
135136            goto stall;
136137        UEINTX &= ~(1 << RXSTPI);
...... 
149150        UEINTX &= ~(1 << STALLEDI);
150151    }
151152    if (UEINTX & (1 << TXINI)) {
152        /* @@ EP_RX: cancel */
153        /* @@ EP_RX: cancel (?) */
153154        if (ep->state == EP_TX) {
154155            ep_tx(ep);
155156            UEINTX &= ~(1 << TXINI);

Archive Download the corresponding diff file



interactive