Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169051
b: refs/heads/master
c: 8d6499e
h: refs/heads/master
i:
  169049: 5751f48
  169047: 7b4db4f
v: v3
  • Loading branch information
Daniel Glöckner authored and Greg Kroah-Hartman committed Dec 1, 2009
1 parent efe748f commit de50116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 5542bc2ac7b52c021fc9c7a96329955491b7e763
refs/heads/master: 8d6499e5bde91ad05dea4f666bdfe79e65e7cf96
10 changes: 5 additions & 5 deletions trunk/drivers/usb/musb/cppi_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1442,11 +1442,6 @@ static int cppi_channel_abort(struct dma_channel *channel)
musb_writew(regs, MUSB_TXCSR, value);
musb_writew(regs, MUSB_TXCSR, value);

/* re-enable interrupt */
if (enabled)
musb_writel(tibase, DAVINCI_TXCPPI_INTENAB_REG,
(1 << cppi_ch->index));

/* While we scrub the TX state RAM, ensure that we clean
* up any interrupt that's currently asserted:
* 1. Write to completion Ptr value 0x1(bit 0 set)
Expand All @@ -1459,6 +1454,11 @@ static int cppi_channel_abort(struct dma_channel *channel)
cppi_reset_tx(tx_ram, 1);
musb_writel(&tx_ram->tx_complete, 0, 0);

/* re-enable interrupt */
if (enabled)
musb_writel(tibase, DAVINCI_TXCPPI_INTENAB_REG,
(1 << cppi_ch->index));

cppi_dump_tx(5, cppi_ch, " (done teardown)");

/* REVISIT tx side _should_ clean up the same way
Expand Down

0 comments on commit de50116

Please sign in to comment.