Changeset c54b898 in mainline for uspace/drv/bus/usb/usbmid/main.c


Ignore:
Timestamp:
2018-01-05T16:30:46Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b60944b
Parents:
11d4c747
git-author:
Petr Manek <petr.manek@…> (2018-01-05 16:21:03)
git-committer:
Petr Manek <petr.manek@…> (2018-01-05 16:30:46)
Message:

usbdev: refactoring

The device_rem driver callback was renamed to device_remove. Also,
a new device_removed callback was introduced. This callback will fire
after all device pipes (endpoints, internally) are unregistered from
the HC device after a call to device_remove. It is semantically
a better opportunity for the USB device driver to free resources and
join all fibrils, since endpoint unregistration will force abort all
active transfers, waking up their issuers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/main.c

    r11d4c747 rc54b898  
    162162static const usb_driver_ops_t mid_driver_ops = {
    163163        .device_add = usbmid_device_add,
    164         .device_rem = usbmid_device_remove,
     164        .device_remove = usbmid_device_remove,
    165165        .device_gone = usbmid_device_gone,
    166166        .function_online = usbmid_function_online,
Note: See TracChangeset for help on using the changeset viewer.