Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f9a0cef in mainline for uspace/drv/usbhub/utils.c


Ignore:
Timestamp:
2010-12-13T00:31:22Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
37f7cfe, ea5dbaf
Parents:
1e32a63
Message:

Add clearing status changes in hub driver

Also, both keyboard and hub driver question with interval of 1s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/utils.c

    r1e32a63 rf9a0cef  
    508508        int opResult;
    509509        printf("[usb_hub] finalizing add device\n");
     510        opResult = usb_hub_clear_port_feature(hc, target.address,
     511            port, USB_HUB_FEATURE_C_PORT_RESET);
     512        if (opResult != EOK) {
     513                goto release;
     514        }
    510515
    511516        /* Request address at from host controller. */
     
    625630        //something connected/disconnected
    626631        if (usb_port_connect_change(&status)) {
     632                opResult = usb_hub_clear_port_feature(hc, target.address,
     633                    port, USB_HUB_FEATURE_C_PORT_CONNECTION);
     634                // TODO: check opResult
    627635                if (usb_port_dev_connected(&status)) {
    628636                        printf("[usb_hub] some connection changed\n");
Note: See TracChangeset for help on using the changeset viewer.