Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259244
b: refs/heads/master
c: e4e5b13
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Jul 1, 2011
1 parent 1d55072 commit 5e06943
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 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: fc0b721f27beb5464d9fb5e521f5cd68127dd14e
refs/heads/master: e4e5b136eb6f2d3aa10dca108a1b787dc92d67df
22 changes: 20 additions & 2 deletions trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,16 @@ static void musb_save_context(struct musb *musb)
musb->context.devctl = musb_readb(musb_base, MUSB_DEVCTL);

for (i = 0; i < musb->config->num_eps; ++i) {
epio = musb->endpoints[i].regs;
struct musb_hw_ep *hw_ep;

hw_ep = &musb->endpoints[i];
if (!hw_ep)
continue;

epio = hw_ep->regs;
if (!epio)
continue;

musb->context.index_regs[i].txmaxp =
musb_readw(epio, MUSB_TXMAXP);
musb->context.index_regs[i].txcsr =
Expand Down Expand Up @@ -2280,7 +2289,16 @@ static void musb_restore_context(struct musb *musb)
musb_writeb(musb_base, MUSB_DEVCTL, musb->context.devctl);

for (i = 0; i < musb->config->num_eps; ++i) {
epio = musb->endpoints[i].regs;
struct musb_hw_ep *hw_ep;

hw_ep = &musb->endpoints[i];
if (!hw_ep)
continue;

epio = hw_ep->regs;
if (!epio)
continue;

musb_writew(epio, MUSB_TXMAXP,
musb->context.index_regs[i].txmaxp);
musb_writew(epio, MUSB_TXCSR,
Expand Down

0 comments on commit 5e06943

Please sign in to comment.