Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358507
b: refs/heads/master
c: f5c6a7d
h: refs/heads/master
i:
  358505: 43879a3
  358503: e0be341
v: v3
  • Loading branch information
Andy Shevchenko authored and Vinod Koul committed Jan 9, 2013
1 parent c629519 commit 6ae12a3
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 21e93c1e7dae0e8b1914a522c331f0f7763fa89d
refs/heads/master: f5c6a7df35b04db906577e90fa5e133e56433bcf
14 changes: 6 additions & 8 deletions trunk/drivers/dma/dw_dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ static inline void dwc_do_single_block(struct dw_dma_chan *dwc,
channel_writel(dwc, CTL_LO, ctllo);
channel_writel(dwc, CTL_HI, desc->lli.ctlhi);
channel_set_bit(dw, CH_EN, dwc->mask);

/* Move pointer to next descriptor */
dwc->tx_node_active = dwc->tx_node_active->next;
}

/* Called with dwc->lock held and bh disabled */
Expand Down Expand Up @@ -278,7 +281,7 @@ static void dwc_dostart(struct dw_dma_chan *dwc, struct dw_desc *first)
dwc_initialize(dwc);

dwc->tx_list = &first->tx_list;
dwc->tx_node_active = first->tx_list.next;
dwc->tx_node_active = &first->tx_list;

dwc_do_single_block(dwc, first);

Expand Down Expand Up @@ -604,18 +607,13 @@ static void dw_dma_tasklet(unsigned long data)

dma_writel(dw, CLEAR.XFER, dwc->mask);

/* move pointer to next descriptor */
dwc->tx_node_active =
dwc->tx_node_active->next;

dwc_do_single_block(dwc, desc);

spin_unlock_irqrestore(&dwc->lock, flags);
continue;
} else {
/* we are done here */
clear_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags);
}
/* we are done here */
clear_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags);
}
spin_unlock_irqrestore(&dwc->lock, flags);

Expand Down

0 comments on commit 6ae12a3

Please sign in to comment.