usb: musb: wake the device before ulpi transfers
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 3 Feb 2012 16:00:28 +0000 (18:00 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 10 Feb 2012 14:19:15 +0000 (16:19 +0200)
commit521cc76b1f10445b067bf5b6f469e5d32f60c09c
tree111bb5104f47954bba68f7f6135de003c4f6955b
parent7bcf018345a6ed7bb6ebdb495a91e0befc0e9847
usb: musb: wake the device before ulpi transfers

musb can be suspended at the time some other driver wants to do ulpi
transfers using otg_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 otg_transceiver so that pm_runtime can be used.

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