usb: musb: wake the device before ulpi transfers
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 21 Mar 2012 14:35:52 +0000 (16:35 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Apr 2012 16:11:48 +0000 (19:11 +0300)
commitbf070bc14178f1458e7eccd76316ac24f76f1890
tree7d4569f916eb4718476c788aae853edde40c79cf
parent692933b2ccfce02400dc8360a97acde2846e8541
usb: musb: wake the device before ulpi transfers

musb can be suspended at the time some other driver wants to do ulpi
transfers using usb_phy_io_* functions, and that can cause data abort,
as it happened with isp1704_charger:
http://article.gmane.org/gmane.linux.kernel/1226122

Add pm_runtime to ulpi functions to rectify this. This also adds io_dev
to usb_phy so that pm_runtime_* functions can be used.

Cc: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
include/linux/usb/otg.h