Changeset dcc10b8d in mainline


Ignore:
Timestamp:
2011-10-30T18:47:00Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e462909
Parents:
b09096a
Message:

usbhid: Fix usbhid dev_remove.

Leave as not supported right now, we have no means to stop polling fibril and active USB communication (yet).

Location:
uspace/drv/bus/usb
Files:
2 edited

Legend:

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

    rb09096a rdcc10b8d  
    179179static int usb_hid_device_rem(usb_device_t *dev)
    180180{
    181         return EOK;
     181        // TODO: Stop device polling fibril
     182        // TODO: Stop autorepeat fibril
     183        // TODO: Call deinit
     184        return ENOTSUP;
    182185}
    183186/*----------------------------------------------------------------------------*/
     
    195198                async_usleep(100000);
    196199                if (!tries--) {
    197                         usb_log_error("Can't remove hub, still running.\n");
     200                        usb_log_error("Can't remove hid, still running.\n");
    198201                        return EBUSY;
    199202                }
  • uspace/drv/bus/usb/usbmast/main.c

    rb09096a rdcc10b8d  
    114114{
    115115        //TODO: flush buffers, or whatever.
     116        //TODO: remove device
    116117        return ENOTSUP;
    117118}
Note: See TracChangeset for help on using the changeset viewer.