Changeset 8ad2b0a in mainline for uspace/drv/bus/usb/ehci/endpoint_list.c
- Timestamp:
- 2018-01-17T17:55:35Z (8 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/endpoint_list.c
rd60115a r8ad2b0a 124 124 write_barrier(); 125 125 /* Add to the sw list */ 126 list_append(&ep-> link, &instance->endpoint_list);126 list_append(&ep->eplist_link, &instance->endpoint_list); 127 127 128 128 ehci_endpoint_t *first = ehci_endpoint_list_instance( … … 159 159 qh_t *prev_qh; 160 160 /* Remove from the hardware queue */ 161 if (list_first(&instance->endpoint_list) == &ep-> link) {161 if (list_first(&instance->endpoint_list) == &ep->eplist_link) { 162 162 /* I'm the first one here */ 163 163 prev_qh = instance->list_head; 164 164 qpos = "FIRST"; 165 165 } else { 166 prev_qh = ehci_endpoint_list_instance(ep-> link.prev)->qh;166 prev_qh = ehci_endpoint_list_instance(ep->eplist_link.prev)->qh; 167 167 qpos = "NOT FIRST"; 168 168 } … … 176 176 177 177 /* Remove from the endpoint list */ 178 list_remove(&ep-> link);178 list_remove(&ep->eplist_link); 179 179 fibril_mutex_unlock(&instance->guard); 180 180 }
Note:
See TracChangeset
for help on using the changeset viewer.