git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c38efd
)
usb: musb: must power on in workaround_work
author
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 22 Mar 2013 16:29:14 +0000
(18:29 +0200)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 22 Mar 2013 16:31:54 +0000
(18:31 +0200)
otherwise we get a fault if not powered on when work triggers..
drivers/usb/musb/musb_core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/musb_core.c
b/drivers/usb/musb/musb_core.c
index
53d668e
..
dd2d742
100644
(file)
--- 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);
}
/* --------------------------------------------------------------------------