USB: gadget: gadget zero uses new suspend/resume hooks
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 19 Mar 2009 21:16:09 +0000 (14:16 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:45 +0000 (16:20 -0700)
commitab943a2e125b098489ccaa0166c2c52f8266d9ed
treeb50c7e28683f0cb0d982f0e9f164d2b5844eefef
parent8942939a6c83f34615de5ae041cc9ca846923f94
USB: gadget: gadget zero uses new suspend/resume hooks

Use the new device-level suspend/resume hooks for Gadget Zero;
always enable them with the OTG test mode; and support remote
wakeup on both configurations even in non-OTG mode.

This ensures that both configurations can pass the USBCV remote
wakeup tests when the OTG test mode is enabled.  This changes
behavior by adding autoresume support to the loopback config
even in non-OTG mode; the test failure was that it didn't work
in OTG mode.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_loopback.c
drivers/usb/gadget/f_sourcesink.c
drivers/usb/gadget/g_zero.h
drivers/usb/gadget/zero.c