]> git.baikalelectronics.ru Git - kernel.git/commit
usb gadget: function activation/deactivation
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 19 Aug 2008 00:38:22 +0000 (17:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:40:53 +0000 (14:40 -0700)
commitb7c1f520297c5be529cd469c4b5eb17c271b9697
treef35e277cdd32267772854b481843299564e4f3e8
parent77154893ff0a5fd105083e017e8f0698fb94db0d
usb gadget: function activation/deactivation

Add a new mechanism to the composite gadget framework, letting
functions deactivate (and reactivate) themselves.  Think of it
as a refcounted wrapper for the software pullup control.

A key example of why to use this mechanism involves functions that
require a userspace daemon.  Those functions shuld use this new
mechanism to prevent the gadget from enumerating until those daemons
are activated.  Without this mechanism, hosts would see devices that
malfunction until the relevant daemons start.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/composite.c
include/linux/usb/composite.h