Changeset e6b9182 in mainline for uspace/drv/bus/usb/xhci/hc.c


Ignore:
Timestamp:
2017-10-13T08:49:29Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
741bcdeb
Parents:
0a5833d7
Message:

WIP usbhost refactoring: ohci completed

Along with that we noticed hcd_t in bus_t is superfluous and it complicates initialization (and breaks isolation), so we removed it. Also, type of the toggle has changed to bool in the functions.

File:
1 edited

Legend:

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

    r0a5833d7 re6b9182  
    216216                goto err_cmd;
    217217
    218         return EOK;
    219 
     218        if ((err = xhci_bus_init(&hc->bus)))
     219                goto err_rh;
     220
     221
     222        return EOK;
     223
     224err_rh:
     225        xhci_rh_fini(&hc->rh);
    220226err_cmd:
    221227        xhci_fini_commands(hc);
     
    610616void hc_fini(xhci_hc_t *hc)
    611617{
     618        xhci_bus_fini(&hc->bus);
    612619        xhci_trb_ring_fini(&hc->command_ring);
    613620        xhci_event_ring_fini(&hc->event_ring);
Note: See TracChangeset for help on using the changeset viewer.