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

Changeset 25251bb in mainline for uspace/drv/bus/usb/xhci/bus.c


Ignore:
Timestamp:
2017-10-26T08:38:53Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
928afc8d
Parents:
62558202
Message:

xhci: move pointer to hc from device to bus

Also, fixes the bug of hc ptr not set on tier 2+ device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/bus.c

    r62558202 r25251bb  
    266266
    267267        usb_log_info("Endpoint(%d:%d) registered to XHCI bus.", ep->device->address, ep->endpoint);
    268         return xhci_device_add_endpoint(xhci_dev, xhci_ep);
     268        return xhci_device_add_endpoint(bus->hc, xhci_dev, xhci_ep);
    269269}
    270270
     
    278278        xhci_device_t *xhci_dev = xhci_device_get(ep->device);
    279279        xhci_endpoint_t *xhci_ep = xhci_endpoint_get(ep);
    280         const int res = xhci_device_remove_endpoint(xhci_dev, xhci_ep);
     280        const int res = xhci_device_remove_endpoint(bus->hc, xhci_dev, xhci_ep);
    281281        if (res != EOK)
    282282                return res;
     
    396396                return ENOMEM;
    397397
     398        bus->hc = hc;
    398399        bus->base.ops = xhci_bus_ops;
    399400        bus->default_address_speed = USB_SPEED_MAX;
Note: See TracChangeset for help on using the changeset viewer.