arm: omap: dwc3: enable and disable clocks from glue
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 21 Mar 2012 06:27:48 +0000 (11:57 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 22 Mar 2012 11:26:13 +0000 (16:56 +0530)
commit608cdc43211d8c1aac0f8b76ca87370032bc7d8d
tree47b7e89ea3b3985ca70a634b8e42022f62d85a4a
parent50407391cf72f43c7e880224135cc35817f4bd82
arm: omap: dwc3: enable and disable clocks from glue

Some of the register writes in glue (dwc3_omap) depends on clocks to
be enabled by its child (core). It is fixed here so that such
inter-dependencies are not there.

Also if the cable is disconnected after rmmod gadget_driver (e.g g_zero), there
will be a crash since clocks are disabled during rmmod and cable disconnect
event will try to write to mailbox register.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/usb/dwc3/dwc3-omap.c