Files
kernel_arpi/include/uapi/linux
Alan Stern 3f2cee73b6 USB: usbfs: allow URBs to be reaped after disconnection
The usbfs API has a peculiar hole: Users are not allowed to reap their
URBs after the device has been disconnected.  There doesn't seem to be
any good reason for this; it is an ad-hoc inconsistency.

The patch allows users to issue the USBDEVFS_REAPURB and
USBDEVFS_REAPURBNDELAY ioctls (together with their 32-bit counterparts
on 64-bit systems) even after the device is gone.  If no URBs are
pending for a disconnected device then the ioctls will return -ENODEV
rather than -EAGAIN, because obviously no new URBs will ever be able
to complete.

The patch also adds a new capability flag for
USBDEVFS_GET_CAPABILITIES to indicate that the reap-after-disconnect
feature is supported.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Chris Dickens <christopher.a.dickens@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2015-01-31 09:05:06 -08:00
..
2014-10-20 10:30:15 +08:00
2014-09-23 23:15:46 -07:00
2014-11-24 17:31:46 -05:00
2014-10-14 13:08:29 +11:00
2014-12-09 13:34:10 -05:00
2014-07-01 10:48:05 -06:00
2014-03-20 14:55:18 +01:00
2014-11-19 14:48:02 -06:00
2014-12-08 12:55:57 +08:00
2014-08-08 15:57:31 -07:00
2014-10-24 00:14:37 +02:00
2014-05-14 10:04:34 +01:00
2014-12-16 11:19:42 -05:00
2014-12-22 16:12:36 -05:00
2014-12-02 13:52:53 -07:00
2014-11-21 18:07:33 +01:00
2014-12-22 16:12:36 -05:00
2014-08-08 15:57:31 -07:00
2014-03-04 13:51:06 -05:00
2014-12-13 12:42:52 -08:00
2014-11-04 13:17:10 -07:00
2014-03-21 14:21:13 -04:00
2014-12-10 17:41:10 -08:00
2014-12-09 14:10:41 +08:00
2014-04-26 12:13:24 -04:00
2014-12-09 12:05:26 +02:00
2014-12-09 12:05:26 +02:00
2014-12-09 12:06:31 +02:00
2014-12-09 12:05:24 +02:00