Changeset f37eb84 in mainline


Ignore:
Timestamp:
2011-10-31T16:46:31Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
27736cf
Parents:
062165f
Message:

libusbhost, libusbdev: Fix releasing default address.

Location:
uspace/lib
Files:
3 edited

Legend:

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

    r062165f rf37eb84  
    265265        }
    266266
    267         rc = usb_pipe_register_with_speed(&ctrl_pipe, dev_speed, 0, &hc_conn);
     267        rc = usb_pipe_register(&ctrl_pipe, 0, &hc_conn);
    268268        if (rc != EOK) {
    269269                rc = ENOTCONN;
     
    320320         */
    321321        unregister_control_endpoint_on_default_address(&hc_conn);
     322        usb_hc_unregister_device(&hc_conn, USB_ADDRESS_DEFAULT);
    322323
    323324        /*
     
    381382                usb_log_warning("%s: Failed to unregister default pipe.\n",
    382383                    __FUNCTION__);
     384        usb_hc_unregister_device(&hc_conn, USB_ADDRESS_DEFAULT);
    383385
    384386leave_release_free_address:
  • uspace/lib/usbhost/src/iface.c

    r062165f rf37eb84  
    104104        assert(address);
    105105
    106         usb_log_debug("Address request speed: %s.\n", usb_str_speed(speed));
     106        usb_log_debug("Address request: speed: %s, address: %d, strict: %s.\n",
     107            usb_str_speed(speed), *address, strict ? "YES" : "NO");
    107108        return usb_device_manager_request_address(
    108109            &hcd->dev_manager, address, strict, speed);
  • uspace/lib/usbhost/src/usb_device_manager.c

    r062165f rf37eb84  
    166166    usb_device_manager_t *instance, usb_address_t address)
    167167{
    168         if ((address <= 0) || (address >= USB_ADDRESS_COUNT)) {
     168        if ((address < 0) || (address >= USB_ADDRESS_COUNT)) {
    169169                return EINVAL;
    170170        }
Note: See TracChangeset for help on using the changeset viewer.