Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364761
b: refs/heads/master
c: e561511
h: refs/heads/master
i:
  364759: c0f25dd
v: v3
  • Loading branch information
Grazvydas Ignotas authored and Felipe Balbi committed Mar 22, 2013
1 parent d7c9e25 commit ee93260
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4261b8f3538c1cae63e30110a164614ea2f10299
refs/heads/master: e5615112807c27dd256f0bd8fc8b1f6f5e1b90af
10 changes: 7 additions & 3 deletions trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1952,9 +1952,13 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
musb_write_ulpi_buscontrol(musb->mregs, busctl);
}

MUSB_DEV_MODE(musb);
musb->xceiv->otg->default_a = 0;
musb->xceiv->state = OTG_STATE_B_IDLE;
if (musb->xceiv->otg->default_a) {
MUSB_HST_MODE(musb);
musb->xceiv->state = OTG_STATE_A_IDLE;
} else {
MUSB_DEV_MODE(musb);
musb->xceiv->state = OTG_STATE_B_IDLE;
}

status = musb_gadget_setup(musb);

Expand Down

0 comments on commit ee93260

Please sign in to comment.