Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357674
b: refs/heads/master
c: c6cd087
h: refs/heads/master
v: v3
  • Loading branch information
Roger Quadros committed Feb 13, 2013
1 parent 4e60688 commit 4b0b127
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 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: 340c64eabacb2a4331b4357c0e8944027ce37216
refs/heads/master: c6cd087ed058f8a7dfe1997cc51fdf8005e25a03
16 changes: 0 additions & 16 deletions trunk/drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/spinlock.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/platform_data/usb-omap.h>
Expand Down Expand Up @@ -108,7 +107,6 @@ struct usbhs_hcd_omap {
struct usbhs_omap_platform_data *pdata;

u32 usbhs_rev;
spinlock_t lock;
};
/*-------------------------------------------------------------------------*/

Expand Down Expand Up @@ -276,13 +274,11 @@ static int usbhs_runtime_resume(struct device *dev)
{
struct usbhs_hcd_omap *omap = dev_get_drvdata(dev);
struct usbhs_omap_platform_data *pdata = omap->pdata;
unsigned long flags;
int i, r;

dev_dbg(dev, "usbhs_runtime_resume\n");

omap_tll_enable();
spin_lock_irqsave(&omap->lock, flags);

if (!IS_ERR(omap->ehci_logic_fck))
clk_enable(omap->ehci_logic_fck);
Expand Down Expand Up @@ -324,22 +320,17 @@ static int usbhs_runtime_resume(struct device *dev)
}
}

spin_unlock_irqrestore(&omap->lock, flags);

return 0;
}

static int usbhs_runtime_suspend(struct device *dev)
{
struct usbhs_hcd_omap *omap = dev_get_drvdata(dev);
struct usbhs_omap_platform_data *pdata = omap->pdata;
unsigned long flags;
int i;

dev_dbg(dev, "usbhs_runtime_suspend\n");

spin_lock_irqsave(&omap->lock, flags);

for (i = 0; i < omap->nports; i++) {
switch (pdata->port_mode[i]) {
case OMAP_EHCI_PORT_MODE_HSIC:
Expand All @@ -362,7 +353,6 @@ static int usbhs_runtime_suspend(struct device *dev)
if (!IS_ERR(omap->ehci_logic_fck))
clk_disable(omap->ehci_logic_fck);

spin_unlock_irqrestore(&omap->lock, flags);
omap_tll_disable();

return 0;
Expand All @@ -372,7 +362,6 @@ 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 long flags;
unsigned reg;

dev_dbg(dev, "starting TI HSUSB Controller\n");
Expand All @@ -391,7 +380,6 @@ static void omap_usbhs_init(struct device *dev)
}

pm_runtime_get_sync(dev);
spin_lock_irqsave(&omap->lock, flags);

reg = usbhs_read(omap->uhh_base, OMAP_UHH_HOSTCONFIG);
/* setup ULPI bypass and burst configurations */
Expand Down Expand Up @@ -454,8 +442,6 @@ static void omap_usbhs_init(struct device *dev)
usbhs_write(omap->uhh_base, OMAP_UHH_HOSTCONFIG, reg);
dev_dbg(dev, "UHH setup done, uhh_hostconfig=%x\n", reg);

spin_unlock_irqrestore(&omap->lock, flags);

pm_runtime_put_sync(dev);
if (pdata->phy_reset) {
/* Hold the PHY in RESET for enough time till
Expand Down Expand Up @@ -521,8 +507,6 @@ static int usbhs_omap_probe(struct platform_device *pdev)
return -EADDRNOTAVAIL;
}

spin_lock_init(&omap->lock);

omap->pdata = pdata;

pm_runtime_enable(dev);
Expand Down

0 comments on commit 4b0b127

Please sign in to comment.