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

Changeset 5995383c in mainline


Ignore:
Timestamp:
2017-10-13T10:03:58Z (3 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
master
Children:
cb69854
Parents:
c0e4b5b2
Message:

usbhost refactoring: fix introduced bugs

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_bus.c

    rc0e4b5b2 r5995383c  
    9595
    9696        link_initialize(&ehci_ep->link);
    97         return EOK;
     97        return &ehci_ep->base;
    9898}
    9999
     
    161161        ops->release_endpoint = ehci_release_ep;
    162162
     163        bus->hc = hc;
     164
    163165        return EOK;
    164166}
  • uspace/drv/bus/usb/ohci/ohci_bus.c

    rc0e4b5b2 r5995383c  
    9595
    9696        link_initialize(&ohci_ep->link);
    97         return EOK;
     97        return &ohci_ep->base;
    9898}
    9999
     
    161161        ops->release_endpoint = ohci_release_ep;
    162162
     163        bus->hc = hc;
     164
    163165        return EOK;
    164166}
  • uspace/lib/usbhost/src/hcd.c

    rc0e4b5b2 r5995383c  
    146146        ep->tt.address = tt_address;
    147147        ep->tt.port = tt_port;
     148
     149        ep->bandwidth = bus_count_bw(ep, size);
    148150
    149151        const int err = bus_register_endpoint(hcd->bus, ep);
Note: See TracChangeset for help on using the changeset viewer.