Changeset 68dbe3e in mainline
- Timestamp:
- 2011-10-14T18:53:04Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aaf835d
- Parents:
- 98604cc
- Location:
- uspace/drv/bus/usb/usbhid
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/main.c
r98604cc r68dbe3e 126 126 hid_dev); 127 127 128 129 128 if (rc != EOK) { 130 129 usb_log_error("Failed to start polling fibril for `%s'.\n", … … 133 132 return rc; 134 133 } 134 hid_dev->running = true; 135 135 dev->driver_data = hid_dev; 136 136 … … 195 195 { 196 196 usb_hid_dev_t *hid_dev = dev->driver_data; 197 unsigned tries = 10; 198 while (hid_dev->running) { 199 async_usleep(100000); 200 if (!tries--) { 201 usb_log_error("Can't remove hub, still running.\n"); 202 return EINPROGRESS; 203 } 204 } 205 206 assert(!hid_dev->running); 197 207 usb_hid_destroy(hid_dev); 198 208 return EOK; -
uspace/drv/bus/usb/usbhid/usbhid.c
r98604cc r68dbe3e 630 630 } 631 631 632 hid_dev->running = false; 632 633 // usb_hid_destroy(hid_dev); 633 634 } -
uspace/drv/bus/usb/usbhid/usbhid.h
r98604cc r68dbe3e 129 129 130 130 int report_nr; 131 bool running; 131 132 }; 132 133
Note:
See TracChangeset
for help on using the changeset viewer.