usb: musb: move work_struct(otg_notifier_work) from core to omap glue
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 22 Jun 2012 12:10:51 +0000 (17:40 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Jun 2012 11:07:21 +0000 (14:07 +0300)
commit1e5acb8d6113a0f159257845e153d5b870ca618a
tree50fd6aa8a6cd92c04f985e9a1278c9db12ff2375
parent410219dcd2ba8d8b4bcfa9c232f35bf505bc021a
usb: musb: move work_struct(otg_notifier_work) from core to omap glue

Commit 712d8e(fixes pm_runtime calls while atomic by using a work
queue. musb pm_runtime_get_sync call happens in interrupt context
on cable attach case. That can result in re-enabling the interrupts and
cause side affect. To avoid this deferred processing is used)

While the issue and the work queue implementation is specific to omap
(omap2430.c), the work_struct is defined as a member of struct musb
(musb_core.h). Hence moved the work_struct from musb_core to omap
glue.

Cc: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.h
drivers/usb/musb/omap2430.c