Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299407
b: refs/heads/master
c: afb76df
h: refs/heads/master
i:
  299405: 4c4e483
  299403: 44a7839
  299399: 58a4e3f
  299391: 9b26732
v: v3
  • Loading branch information
Vladimir Zapolskiy authored and Felipe Balbi committed Apr 10, 2012
1 parent 4129f51 commit 976f21e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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: ecb07797ffc1c2aaa2e58d1ba1b5deea44ea5b9e
refs/heads/master: afb76df140823c57738598a876cd1d6568cd57c7
20 changes: 12 additions & 8 deletions trunk/drivers/usb/musb/omap2430.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,13 @@ static int omap2430_runtime_suspend(struct device *dev)
struct omap2430_glue *glue = dev_get_drvdata(dev);
struct musb *musb = glue_to_musb(glue);

musb->context.otg_interfsel = musb_readl(musb->mregs,
OTG_INTERFSEL);
if (musb) {
musb->context.otg_interfsel = musb_readl(musb->mregs,
OTG_INTERFSEL);

omap2430_low_level_exit(musb);
usb_phy_set_suspend(musb->xceiv, 1);
omap2430_low_level_exit(musb);
usb_phy_set_suspend(musb->xceiv, 1);
}

return 0;
}
Expand All @@ -505,11 +507,13 @@ static int omap2430_runtime_resume(struct device *dev)
struct omap2430_glue *glue = dev_get_drvdata(dev);
struct musb *musb = glue_to_musb(glue);

omap2430_low_level_init(musb);
musb_writel(musb->mregs, OTG_INTERFSEL,
musb->context.otg_interfsel);
if (musb) {
omap2430_low_level_init(musb);
musb_writel(musb->mregs, OTG_INTERFSEL,
musb->context.otg_interfsel);

usb_phy_set_suspend(musb->xceiv, 0);
usb_phy_set_suspend(musb->xceiv, 0);
}

return 0;
}
Expand Down

0 comments on commit 976f21e

Please sign in to comment.