Changeset a3044b4 in mainline
- Timestamp:
- 2017-10-28T16:46:54Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b2930b
- Parents:
- 9868982
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/bus.c
r9868982 ra3044b4 188 188 xhci_device_t *xhci_dev = xhci_device_get(dev); 189 189 190 /* If the device is still attached, end DDF drivers gracefully. */ 191 if (!xhci_dev->detached) { 192 if ((err = ddf_fun_offline(dev->fun))) { 193 usb_log_warning("Failed to offline DDF function of device '%s': %s", 194 ddf_fun_get_name(dev->fun), str_error(err)); 195 } 196 } 197 190 198 /* Block creation of new endpoints and transfers. */ 191 199 usb_log_debug2("Device '%s' going offline.", ddf_fun_get_name(dev->fun)); … … 215 223 /* Make DDF (and all drivers) forget about the device. */ 216 224 if ((err = ddf_fun_unbind(dev->fun))) { 217 usb_log_warning("Failed to unbind DDF function of de tached device '%s': %s",225 usb_log_warning("Failed to unbind DDF function of device '%s': %s", 218 226 ddf_fun_get_name(dev->fun), str_error(err)); 219 227 } … … 222 230 if (!xhci_dev->detached) { 223 231 if ((err = hc_deconfigure_device(hc, xhci_dev->slot_id))) { 224 usb_log_warning("Failed to deconfigure de tached device '%s': %s",232 usb_log_warning("Failed to deconfigure device '%s': %s", 225 233 ddf_fun_get_name(dev->fun), str_error(err)); 226 234 }
Note:
See TracChangeset
for help on using the changeset viewer.