]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Export if an interface driver supports autosuspend.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 6 Oct 2008 21:45:46 +0000 (14:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:41:03 +0000 (14:41 -0700)
commit5905c91b345f702bfec0827c8578de59a6fd8acc
tree0bd664b1df6cd48382bcb51771ca3eac362697ee
parentb94daba72f780c34af70cc686d5444fb14e54121
USB: Export if an interface driver supports autosuspend.

Create a new sysfs file per interface named supports_autosuspend.  This
file returns true if an interface driver's .supports_autosuspend flag is
set.  It also returns true if the interface is unclaimed (since the USB
core will autosuspend a device if an interface is not claimed).

This new sysfs file will be useful for user space scripts to test whether
a USB device correctly auto-suspends.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/ABI/testing/sysfs-bus-usb
drivers/usb/core/sysfs.c