Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56833
b: refs/heads/master
c: fcbd963
h: refs/heads/master
i:
  56831: d641ca0
v: v3
  • Loading branch information
Li Yang authored and Greg Kroah-Hartman committed May 23, 2007
1 parent 1e9f47a commit 4cd2a58
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 8d062b9a3516c6fbcf749bcc864fdb8b3def1caa
refs/heads/master: fcbd963912acc0c5d51bb27f8654f2a91fcff322
8 changes: 5 additions & 3 deletions trunk/drivers/usb/gadget/fsl_usb2_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,15 @@ static int dr_controller_setup(struct fsl_udc *udc)

/* Config PHY interface */
portctrl = fsl_readl(&dr_regs->portsc1);
portctrl &= ~PORTSCX_PHY_TYPE_SEL;
portctrl &= ~(PORTSCX_PHY_TYPE_SEL & PORTSCX_PORT_WIDTH);
switch (udc->phy_mode) {
case FSL_USB2_PHY_ULPI:
portctrl |= PORTSCX_PTS_ULPI;
break;
case FSL_USB2_PHY_UTMI:
case FSL_USB2_PHY_UTMI_WIDE:
portctrl |= PORTSCX_PTW_16BIT;
/* fall through */
case FSL_USB2_PHY_UTMI:
portctrl |= PORTSCX_PTS_UTMI;
break;
case FSL_USB2_PHY_SERIAL:
Expand Down Expand Up @@ -625,7 +627,7 @@ static void fsl_free_buffer(struct usb_ep *_ep, void *buf,
struct fsl_ep *ep;

if (!_ep)
return NULL;
return;

ep = container_of(_ep, struct fsl_ep, ep);

Expand Down

0 comments on commit 4cd2a58

Please sign in to comment.