diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-10-11 16:40:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:55:35 -0400 |
commit | 58ed7b94d98245fbad54a0af7ea3317ab1dd6876 (patch) | |
tree | cc5df430c9a4a152d8b264f9f0c613ed40a2c333 /drivers/usb/gadget/atmel_usba_udc.h | |
parent | d466a9190ff1ceddfee50686e61d63590fc820d9 (diff) |
atmel_usba_udc: Keep track of the device status
Keep track of the device status (as returned by the GET_STATUS
request) and allow it to be manipulated by set_selfpowered() as
well as SET_FEATURE/CLEAR_FEATURE (for remote wakeup)
Implement the wakeup() op, which refuses to do anything if the
DEVICE_REMOTE_WAKEUP feature wasn't set by the host. Now this
driver passes USBCV (at least, with gadget zero).
Fix one more locking bug; lockdep is every developer's friend.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.h')
-rw-r--r-- | drivers/usb/gadget/atmel_usba_udc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.h b/drivers/usb/gadget/atmel_usba_udc.h index f4f0f8bf812c..a68304e31a68 100644 --- a/drivers/usb/gadget/atmel_usba_udc.h +++ b/drivers/usb/gadget/atmel_usba_udc.h | |||
@@ -320,7 +320,9 @@ struct usba_udc { | |||
320 | struct clk *pclk; | 320 | struct clk *pclk; |
321 | struct clk *hclk; | 321 | struct clk *hclk; |
322 | 322 | ||
323 | int test_mode; | 323 | u16 devstatus; |
324 | |||
325 | u16 test_mode; | ||
324 | int vbus_prev; | 326 | int vbus_prev; |
325 | 327 | ||
326 | #ifdef CONFIG_USB_GADGET_DEBUG_FS | 328 | #ifdef CONFIG_USB_GADGET_DEBUG_FS |