Changeset 2cf28b9 in mainline for uspace/lib/usbhost


Ignore:
Timestamp:
2017-10-25T15:22:45Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
62558202
Parents:
f668d60
Message:

xhci: connecting devices deeper than to roothub

It still does not work, because the address command fails, but there should not be any fundamental problem.

Location:
uspace/lib/usbhost
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/bus.h

    rf668d60 r2cf28b9  
    8282        int (*remove_device)(bus_t *, hcd_t *, device_t *);
    8383
     84        /* The following operations are protected by a bus guard. */
    8485        endpoint_t *(*create_endpoint)(bus_t *);
    8586        int (*register_endpoint)(bus_t *, endpoint_t *, const usb_endpoint_desc_t *);
  • uspace/lib/usbhost/src/bus.c

    rf668d60 r2cf28b9  
    8787                return ENOTSUP;
    8888
    89         fibril_mutex_lock(&bus->guard);
    90         const int r = bus->ops.enumerate_device(bus, hcd, dev);
    91         fibril_mutex_unlock(&bus->guard);
    92         return r;
     89        return bus->ops.enumerate_device(bus, hcd, dev);
    9390}
    9491
     
    10198                return ENOTSUP;
    10299
    103         fibril_mutex_lock(&bus->guard);
    104         const int r = bus->ops.remove_device(bus, hcd, dev);
    105         fibril_mutex_unlock(&bus->guard);
    106         return r;
     100        return bus->ops.remove_device(bus, hcd, dev);
    107101}
    108102
Note: See TracChangeset for help on using the changeset viewer.