projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76bfa95
)
usb: musb: omap2430: use MUSB_DEVCTL_BDEVICE
author
Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com>
Thu, 23 Oct 2014 20:34:12 +0000
(
00:34
+0400)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 3 Nov 2014 16:01:19 +0000
(10:01 -0600)
The OMAP2+ MUSB glue layer still uses a bare number for the DEVCTL.B-Device bit
in one place, while there's #define MUSB_DEVCTL_BDEVICE for that.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/omap2430.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/omap2430.c
b/drivers/usb/musb/omap2430.c
index 6669f2611e917f678b811ab7c7664269f8e65272..20fc2a532a24e37f5acb32b970ce3cb496a8935a 100644
(file)
--- a/
drivers/usb/musb/omap2430.c
+++ b/
drivers/usb/musb/omap2430.c
@@
-162,7
+162,8
@@
static void omap2430_musb_set_vbus(struct musb *musb, int is_on)
* Wait for the musb to set as A device to enable the
* VBUS
*/
- while (musb_readb(musb->mregs, MUSB_DEVCTL) & 0x80) {
+ while (musb_readb(musb->mregs, MUSB_DEVCTL) &
+ MUSB_DEVCTL_BDEVICE) {
mdelay(5);
cpu_relax();