From: Grazvydas Ignotas Date: Fri, 22 Mar 2013 16:29:14 +0000 (+0200) Subject: usb: musb: must power on in workaround_work X-Git-Tag: sz_154~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=f73744ac44a0b2c235b79023808baf8a4b5beaad usb: musb: must power on in workaround_work otherwise we get a fault if not powered on when work triggers.. --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 53d668e0da5b..dd2d742596a6 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1815,6 +1815,8 @@ static void musb_vbus_workaround_work(struct work_struct *work) if (musb_ulpi_access.write == NULL) return; + pm_runtime_get_sync(musb->controller); + devctl = musb_readb(musb->mregs, MUSB_DEVCTL); /* @@ -1837,6 +1839,8 @@ static void musb_vbus_workaround_work(struct work_struct *work) //if (ret) // dev_err(musb->controller, "VBUS workaround error\n"); } + + pm_runtime_put(musb->controller); } /* --------------------------------------------------------------------------