Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373231
b: refs/heads/master
c: 40b0d68
h: refs/heads/master
i:
  373229: 201cd3e
  373227: 758521d
  373223: 6ce8c2a
  373215: 08d6fa6
v: v3
  • Loading branch information
Roger Quadros authored and Samuel Ortiz committed Apr 9, 2013
1 parent 6bc5d9e commit 82760ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 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: 6394678e6e563b196122e911daa911973f9cf7ab
refs/heads/master: 40b0d68a8c39c6d6cb7e975c9b180e2203864556
28 changes: 0 additions & 28 deletions trunk/drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,24 +430,10 @@ static unsigned omap_usbhs_rev2_hostconfig(struct usbhs_hcd_omap *omap,
static void omap_usbhs_init(struct device *dev)
{
struct usbhs_hcd_omap *omap = dev_get_drvdata(dev);
struct usbhs_omap_platform_data *pdata = omap->pdata;
unsigned reg;

dev_dbg(dev, "starting TI HSUSB Controller\n");

if (pdata->phy_reset) {
if (gpio_is_valid(pdata->reset_gpio_port[0]))
devm_gpio_request_one(dev, pdata->reset_gpio_port[0],
GPIOF_OUT_INIT_LOW, "USB1 PHY reset");

if (gpio_is_valid(pdata->reset_gpio_port[1]))
devm_gpio_request_one(dev, pdata->reset_gpio_port[1],
GPIOF_OUT_INIT_LOW, "USB2 PHY reset");

/* Hold the PHY in RESET for enough time till DIR is high */
udelay(10);
}

pm_runtime_get_sync(dev);

reg = usbhs_read(omap->uhh_base, OMAP_UHH_HOSTCONFIG);
Expand Down Expand Up @@ -476,20 +462,6 @@ static void omap_usbhs_init(struct device *dev)
dev_dbg(dev, "UHH setup done, uhh_hostconfig=%x\n", reg);

pm_runtime_put_sync(dev);
if (pdata->phy_reset) {
/* Hold the PHY in RESET for enough time till
* PHY is settled and ready
*/
udelay(10);

if (gpio_is_valid(pdata->reset_gpio_port[0]))
gpio_set_value_cansleep
(pdata->reset_gpio_port[0], 1);

if (gpio_is_valid(pdata->reset_gpio_port[1]))
gpio_set_value_cansleep
(pdata->reset_gpio_port[1], 1);
}
}

/**
Expand Down

0 comments on commit 82760ff

Please sign in to comment.