]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fbcaba59a8f6e3631ee89bf166b2896a5a006c9
treeb50c7e28683f0cb0d982f0e9f164d2b5844eefef
parent6f471ea6b0b046937bcada824fa82917b496bfa3
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