Changeset 56257ba in mainline for uspace/drv/bus/usb/uhci/uhci_batch.c
- Timestamp:
- 2018-01-07T01:01:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63431db
- Parents:
- 9efad54
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-07 01:01:41)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-07 01:01:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci_batch.c
r9efad54 r56257ba 178 178 td_print_status(&uhci_batch->tds[i]); 179 179 180 endpoint_toggle_set(batch->ep, 181 td_toggle(&uhci_batch->tds[i])); 180 batch->ep->toggle = td_toggle(&uhci_batch->tds[i]); 182 181 if (i > 0) 183 182 goto substract_ret; … … 195 194 196 195 fibril_mutex_lock(&batch->ep->guard); 197 usb_transfer_batch_reset_toggle(batch);198 196 endpoint_deactivate_locked(batch->ep); 199 197 fibril_mutex_unlock(&batch->ep->guard); … … 236 234 const size_t mps = uhci_batch->base.ep->max_packet_size; 237 235 238 int toggle = endpoint_toggle_get(uhci_batch->base.ep);236 int toggle = uhci_batch->base.ep->toggle; 239 237 assert(toggle == 0 || toggle == 1); 240 238 … … 260 258 } 261 259 td_set_ioc(&uhci_batch->tds[td - 1]); 262 endpoint_toggle_set(uhci_batch->base.ep, toggle);260 uhci_batch->base.ep->toggle = toggle; 263 261 usb_log_debug2( 264 262 "Batch %p %s %s " USB_TRANSFER_BATCH_FMT " initialized.\n", \
Note:
See TracChangeset
for help on using the changeset viewer.