Changeset df8f3fa in mainline for uspace/lib/usbhost/src/iface.c


Ignore:
Timestamp:
2011-08-24T13:32:47Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5fe0a69
Parents:
31bc40e
Message:

Fix: only reset ep if the control transfer was sucessful.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/iface.c

    r31bc40e rdf8f3fa  
    117117        assert(address);
    118118
    119         usb_log_debug("Address request with speed %d.\n", speed);
     119        usb_log_debug("Address request speed: %s.\n", usb_str_speed(speed));
    120120        *address = device_keeper_get_free_address(&hcd->dev_manager, speed);
    121121        usb_log_debug("Address request with result: %d.\n", *address);
     
    191191            usb_device_keeper_get_speed(&hcd->dev_manager, address);
    192192        if (speed >= USB_SPEED_MAX) {
     193                // Does this happen?
    193194                speed = ep_speed;
    194195        }
     
    306307        return send_batch(fun, target, USB_DIRECTION_BOTH, data, size,
    307308            setup_data, setup_size, NULL, callback, arg, "Control WRITE");
    308 //      usb_endpoint_manager_reset_if_need(&hc->ep_manager, target, setup_data);
    309309}
    310310/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.