Changeset c54b898 in mainline for uspace/drv/bus/usb/usbflbk/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/usbflbk/main.c

    r11d4c747 rc54b898  
    6868static const usb_driver_ops_t usbfallback_driver_ops = {
    6969        .device_add = usbfallback_device_add,
    70         .device_rem = usbfallback_device_gone,
     70        .device_remove = usbfallback_device_gone,
    7171        .device_gone = usbfallback_device_gone,
    7272};
Note: See TracChangeset for help on using the changeset viewer.