Changeset cb8ede1 in mainline for uspace/lib/usbhost/src/ddf_helpers.c


Ignore:
Timestamp:
2013-08-07T08:56:48Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4b8ecff
Parents:
6340a6ff
Message:

usb: Root hub always communicates at max spped

and it can be queried internally.

File:
1 edited

Legend:

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

    r6340a6ff rcb8ede1  
    579579 *
    580580 * @param[in] device Host controller ddf device
    581  * @param[in] speed roothub communication speed
    582581 * @return Error code
    583582 */
    584 int hcd_ddf_setup_root_hub(ddf_dev_t *device, usb_speed_t speed)
     583int hcd_ddf_setup_root_hub(ddf_dev_t *device)
    585584{
    586585        assert(device);
    587586        hcd_t *hcd = dev_to_hcd(device);
    588587        assert(hcd);
     588
     589        const usb_speed_t speed = hcd->ep_manager.max_speed;
    589590
    590591        hcd_reserve_default_address(hcd, speed);
Note: See TracChangeset for help on using the changeset viewer.