Changeset 17d34a8 in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2018-02-01T02:19:31Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77ded647
Parents:
19f0048
Message:

xhci: finalize rh correctly

File:
1 edited

Legend:

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

    r19f0048 r17d34a8  
    122122{
    123123        assert(rh);
    124         for (unsigned i = 0; i < rh->max_ports; i++)
    125                 usb_port_fini(&rh->ports[i].base);
    126 
    127         xhci_sw_ring_stop(&rh->event_ring);
    128         joinable_fibril_join(rh->event_worker);
     124        xhci_rh_stop(rh);
     125
     126        joinable_fibril_destroy(rh->event_worker);
    129127        xhci_sw_ring_fini(&rh->event_ring);
    130128        return EOK;
Note: See TracChangeset for help on using the changeset viewer.