Changeset c9467b0 in mainline for uspace/drv/bus/usb/usbhub/port.h


Ignore:
Timestamp:
2013-01-07T17:30:03Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a5a470c
Parents:
e6becb9
Message:

usbhub: Fix after porting to new usb ops.

Check attached handle instead of attached device function.
Release default address after successful enumeration.
Decrease pending ops count after device enumeration.

Remove attached_device member.
usb_hub_port_fini is safe to call on ports withou attached devices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port.h

    re6becb9 rc9467b0  
    6161        usb_device_handle_t attached_handle;
    6262
    63         /** Information about attached device. */
    64         usb_hub_attached_device_t attached_device;
    6563} usb_hub_port_t;
    6664
     
    7371{
    7472        assert(port);
    75         port->attached_device.address = -1;
    76         port->attached_device.fun = NULL;
    7773        port->port_number = port_number;
    7874        port->control_pipe = control_pipe;
Note: See TracChangeset for help on using the changeset viewer.