Changeset d085fbbe in mainline


Ignore:
Timestamp:
2011-11-28T16:12:37Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0255d36
Parents:
b81410f
Message:

lilbusbdev: Consider polling to be one long transfer.

This prevents hc reconnect for every interrupt transfer.
This also prevents others from temperring with the pipe while there is polling going on (client side only), not that there were such attempts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devpoll.c

    rb81410f rd085fbbe  
    8383        }
    8484
     85        usb_pipe_start_long_transfer(pipe);
    8586        size_t failed_attempts = 0;
    8687        while (failed_attempts <= polling_data->auto_polling.max_failures) {
     
    145146        }
    146147
     148        usb_pipe_end_long_transfer(pipe);
    147149        if (polling_data->auto_polling.on_polling_end != NULL) {
    148150                polling_data->auto_polling.on_polling_end(polling_data->dev,
Note: See TracChangeset for help on using the changeset viewer.