Changeset 17873ac7 in mainline for uspace/lib/usbhost/src/usb2_bus.c
- Timestamp:
- 2017-10-31T19:06:57Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 479e32d
- Parents:
- a312d8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/usb2_bus.c
ra312d8f r17873ac7 367 367 } 368 368 369 static int usb2_bus_reset_toggle(bus_t *bus_base, usb_target_t target, bool all)369 static int usb2_bus_reset_toggle(bus_t *bus_base, usb_target_t target, toggle_reset_mode_t mode) 370 370 { 371 371 usb2_bus_t *bus = bus_to_usb2_bus(bus_base); … … 374 374 return EINVAL; 375 375 376 if (mode == RESET_NONE) 377 return EOK; 378 376 379 int ret = ENOENT; 377 380 … … 379 382 assert(ep->device->address == target.address); 380 383 381 if ( all|| ep->endpoint == target.endpoint) {384 if (mode == RESET_ALL || ep->endpoint == target.endpoint) { 382 385 endpoint_toggle_set(ep, 0); 383 386 ret = EOK;
Note:
See TracChangeset
for help on using the changeset viewer.