Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280845
b: refs/heads/master
c: e25bec1
h: refs/heads/master
i:
  280843: 99329e5
v: v3
  • Loading branch information
Hema HK authored and Felipe Balbi committed Dec 12, 2011
1 parent 09517cb commit 4de4ee0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea737554451d9fae1207e84a3d2c495bbfcd3f08
refs/heads/master: e25bec160158abe86c276d7d206264afc3646281
1 change: 1 addition & 0 deletions trunk/drivers/usb/musb/musb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ struct musb_context_registers {
u8 index, testmode;

u8 devctl, busctl, misc;
u32 otg_interfsel;

struct musb_csr_regs index_regs[MUSB_C_NUM_EPS];
};
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/usb/musb/omap2430.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ 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);

omap2430_low_level_exit(musb);
otg_set_suspend(musb->xceiv, 1);

Expand All @@ -503,6 +506,9 @@ static int omap2430_runtime_resume(struct device *dev)
struct musb *musb = glue_to_musb(glue);

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

otg_set_suspend(musb->xceiv, 0);

return 0;
Expand Down

0 comments on commit 4de4ee0

Please sign in to comment.