Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221933
b: refs/heads/master
c: 724c852
h: refs/heads/master
i:
  221931: ba338b6
v: v3
  • Loading branch information
Uwe Kleine-König authored and Greg Kroah-Hartman committed Nov 11, 2010
1 parent e0bbfa3 commit 9bdcd3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: 018b97d084db483096421f95dfdf6c00e7144d67
refs/heads/master: 724c85251f78f1332e0a28f80cead0cee5b7c906
14 changes: 9 additions & 5 deletions trunk/drivers/usb/host/ehci-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ struct ehci_mxc_priv {
static int ehci_mxc_setup(struct usb_hcd *hcd)
{
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
struct device *dev = hcd->self.controller;
struct mxc_usbh_platform_data *pdata = dev_get_platdata(dev);
int retval;

/* EHCI registers start at offset 0x100 */
Expand Down Expand Up @@ -63,6 +65,12 @@ static int ehci_mxc_setup(struct usb_hcd *hcd)

ehci_reset(ehci);

/* set up the PORTSCx register */
ehci_writel(ehci, pdata->portsc, &ehci->regs->port_status[0]);

/* is this really needed? */
msleep(10);

ehci_port_power(ehci, 0);
return 0;
}
Expand Down Expand Up @@ -114,7 +122,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
struct mxc_usbh_platform_data *pdata = pdev->dev.platform_data;
struct usb_hcd *hcd;
struct resource *res;
int irq, ret, temp;
int irq, ret;
struct ehci_mxc_priv *priv;
struct device *dev = &pdev->dev;

Expand Down Expand Up @@ -188,10 +196,6 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
clk_enable(priv->ahbclk);
}

/* set up the PORTSCx register */
ehci_writel(ehci, pdata->portsc, &ehci->regs->port_status[0]);
mdelay(10);

/* setup specific usb hw */
ret = mxc_initialize_usb_hw(pdev->id, pdata->flags);
if (ret < 0)
Expand Down

0 comments on commit 9bdcd3a

Please sign in to comment.