Changeset b5c92d7 in mainline for uspace/lib/usbhost/src/utility.c
- Timestamp:
- 2018-01-19T22:42:46Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 609f3f73
- Parents:
- 4c03793
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-19 22:42:44)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-19 22:42:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/utility.c
r4c03793 rb5c92d7 233 233 if ((request->request_type == 0x2) && 234 234 (request->value == USB_FEATURE_ENDPOINT_HALT)) { 235 const u nsignedindex = uint16_usb2host(request->index);236 const u nsignedep_num = index & 0xf;235 const uint16_t index = uint16_usb2host(request->index); 236 const usb_endpoint_t ep_num = index & 0xf; 237 237 const usb_direction_t dir = (index >> 7) ? USB_DIRECTION_IN : USB_DIRECTION_OUT; 238 238 239 239 endpoint_t *ep = bus_find_endpoint(dev, ep_num, dir); 240 reset_cb(ep); 240 if (ep) { 241 reset_cb(ep); 242 endpoint_del_ref(ep); 243 } else { 244 usb_log_warning("Device(%u): Resetting unregistered endpoint %u %s.", dev->address, ep_num, usb_str_direction(dir)); 245 } 241 246 } 242 247 break;
Note:
See TracChangeset
for help on using the changeset viewer.