Changeset 5995383c in mainline


Ignore:
Timestamp:
2017-10-13T10:03:58Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.