]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: mv_udc: refine suspend/resume function
authorNeil Zhang <zhangwm@marvell.com>
Wed, 30 Nov 2011 01:57:16 +0000 (09:57 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:45:24 +0000 (11:45 +0200)
commit5076ae5588e53da32fef697f604fec33fe5fada0
tree2d6024f3bf035f86f89e3afac80a1c5bee93d714
parent85ff7bfb6e260d7cc6d675941f5569c9b7ad6b44
usb: gadget: mv_udc: refine suspend/resume function

This patch impletments system suspend/resume functions for Marvell
otg controller.
If OTG is enabled, OTG driver will do most of the work.
If not, we will check clock gating.
  If clock gating is enabled, the UDC will be start/stop automatically.
  If not, UDC will be start/stop in suspend/resume functions.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_udc_core.c