Ignore:
Timestamp:
2018-01-17T17:55:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94f8c363
Parents:
d60115a
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-17 17:54:41)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-17 17:55:35)
Message:

ehci: implement transfer abort on endpoint unregister

File:
1 edited

Legend:

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

    rd60115a r8ad2b0a  
    124124        write_barrier();
    125125        /* Add to the sw list */
    126         list_append(&ep->link, &instance->endpoint_list);
     126        list_append(&ep->eplist_link, &instance->endpoint_list);
    127127
    128128        ehci_endpoint_t *first = ehci_endpoint_list_instance(
     
    159159        qh_t *prev_qh;
    160160        /* Remove from the hardware queue */
    161         if (list_first(&instance->endpoint_list) == &ep->link) {
     161        if (list_first(&instance->endpoint_list) == &ep->eplist_link) {
    162162                /* I'm the first one here */
    163163                prev_qh = instance->list_head;
    164164                qpos = "FIRST";
    165165        } else {
    166                 prev_qh = ehci_endpoint_list_instance(ep->link.prev)->qh;
     166                prev_qh = ehci_endpoint_list_instance(ep->eplist_link.prev)->qh;
    167167                qpos = "NOT FIRST";
    168168        }
     
    176176
    177177        /* Remove from the endpoint list */
    178         list_remove(&ep->link);
     178        list_remove(&ep->eplist_link);
    179179        fibril_mutex_unlock(&instance->guard);
    180180}
Note: See TracChangeset for help on using the changeset viewer.