aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2014-02-20 10:49:30 -0500
committerGreg Kroah-Hartman <[email protected]>2014-02-24 17:07:53 -0800
commitf080a51bef2caa9b0f647dc430bc608d5723ac29 (patch)
treed10cd4984eb5988cde6b19c4eb5f082204e3d9e0 /tools/perf/scripts/python/netdev-times.py
parent42d182124801573e06284200d81c3963962e753d (diff)
USB: complain if userspace resets an active endpoint
It is an error for a driver to call usb_clear_halt() or usb_reset_endpoint() while there are URBs queued for the endpoint, because the end result is not well defined. At the time the endpoint gets reset, it may or may not be actively running. As far as I know, no kernel drivers do this. But some userspace drivers do, and it seems like a good idea to bring this error to their attention. This patch adds a warning to the kernel log whenever a program invokes the USBDEVFS_CLEAR_HALT or USBDEVFS_RESETEP ioctls at an inappropriate time, and includes the name of the program. This will make it clear that any subsequent errors are not due to the misbehavior of a kernel driver. Signed-off-by: Alan Stern <[email protected]> Suggested-by: Bjørn Mork <[email protected]> CC: Stanislaw Gruszka <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions