USB: gadget: Implement remote wakeup in ci13xxx_udc
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Fri, 18 Feb 2011 12:13:17 +0000 (17:43 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Feb 2011 19:33:57 +0000 (11:33 -0800)
commite2b61c1df650595d0216c6d086024b5a98d949c7
tree4f64e77a3a8aa9532f018169df2293b7d586438a
parent0e6ca1998e4c803b0be98f97a1d1e1ea562b8964
USB: gadget: Implement remote wakeup in ci13xxx_udc

This patch adds support for remote wakeup.  The following things
are handled:

- Process SET_FEATURE/CLEAR_FEATURE control requests sent by host
for enabling/disabling remote wakeup feature.
- Report remote wakeup enable status in response to GET_STATUS
control request.
- Implement wakeup method defined in usb_gadget_ops for initiating
remote wakeup.
- Notify gadget driver about suspend and resume.

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ci13xxx_udc.c
drivers/usb/gadget/ci13xxx_udc.h