Ignore:
File:
1 edited

Legend:

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

    r58563585 rff0258f  
    3333 * USB device driver framework - automatic interrupt polling.
    3434 */
    35 
    3635#include <usb/dev/device.h>
    3736#include <usb/dev/pipes.h>
     
    8685
    8786        if (params->debug > 0) {
    88                 const usb_endpoint_mapping_t *mapping =
    89                     data->polling_mapping;
     87                const usb_endpoint_mapping_t *mapping
     88                    = data->polling_mapping;
    9089                usb_log_debug("Poll (%p): started polling of `%s' - " \
    9190                    "interface %d (%s,%d,%d), %zuB/%zu.\n",
     
    155154
    156155                /* Take a rest before next request. */
    157                
    158                 // FIXME TODO: This is broken, the time is in ms not us.
     156                //TODO: This is broken, the time is in ms not us.
    159157                // but first we need to fix drivers to actually stop using this,
    160                 // since polling delay should be implemented in HC schedule
     158                // since polling dealy should be implemented in HC schedule
    161159                async_usleep(params->delay);
    162160        }
     
    215213        if (request_size == 0)
    216214                return EINVAL;
    217        
     215
    218216        if (!epm || (epm->pipe.transfer_type != USB_TRANSFER_INTERRUPT) ||
    219217            (epm->pipe.direction != USB_DIRECTION_IN))
    220218                return EINVAL;
    221        
     219
    222220
    223221        polling_data_t *polling_data = malloc(sizeof(polling_data_t));
Note: See TracChangeset for help on using the changeset viewer.