Changeset 9620a54 in mainline for uspace/drv/bus/usb/xhci/trb_ring.c


Ignore:
Timestamp:
2017-10-29T10:51:59Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d33dc780
Parents:
62f8025
Message:

Small changes. Temporarily fixed no device problem for endpoint logging. Added similar macro for device logging. Changed log messages to adopt these macros. TRB rings can be freed again. Made ring finalizers noexcept. Upon detach, the entire slot is disabled prior to unregistering endpoints in order to prevent invalid HC commands. Removed active endpoints count from XHCI device. Device context is freed in HC, so DCBAA is not touched from anywhere else.

File:
1 edited

Legend:

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

    r62f8025 r9620a54  
    121121}
    122122
    123 int xhci_trb_ring_fini(xhci_trb_ring_t *ring)
     123void xhci_trb_ring_fini(xhci_trb_ring_t *ring)
    124124{
    125125        assert(ring);
     
    129129                dmamem_unmap_anonymous(segment);
    130130        }
    131 
    132         return EOK;
    133131}
    134132
     
    292290}
    293291
    294 int xhci_event_ring_fini(xhci_event_ring_t *ring)
     292void xhci_event_ring_fini(xhci_event_ring_t *ring)
    295293{
    296294        list_foreach_safe(ring->segments, cur, next) {
     
    301299        if (ring->erst)
    302300                free32(ring->erst);
    303 
    304         return EOK;
    305301}
    306302
Note: See TracChangeset for help on using the changeset viewer.