]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] USB dummy_hcd: Centralize link state computations
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 3 May 2005 20:24:04 +0000 (16:24 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Jun 2005 21:43:52 +0000 (14:43 -0700)
commitab66d8d4345184550e6e03fb5020b21ea5d0d5b2
tree8925368cf99ad45b92eb9e42a86615a7ba7640b0
parentcd9a18bb725d3cbb0b9bd4c70b210ed0710ff8d6
[PATCH] USB dummy_hcd: Centralize link state computations

This patch adds to the dummy_hcd driver a new routine for keeping track of
all changes in the state of the emulated USB link.  The logic is now kept
in one spot instead of spread around, and it's easier to verify and
update the code.  The behavior of the port features has been corrected in
a few respects as well (for instance, if the POWER feature is clear then
none of the other features can be set).

Also added is support for the (relatively new) _connect() and
_disconnect() calls of the Gadget API.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/dummy_hcd.c