Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231607
b: refs/heads/master
c: 15c1723
h: refs/heads/master
i:
  231605: 196e214
  231603: 9f3d946
  231599: e5b6e55
v: v3
  • Loading branch information
Russell King - ARM Linux authored and Dan Williams committed Jan 5, 2011
1 parent 1d83715 commit 6c7ab50
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 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: 3d992e1a6f8465db3921ef75bfc490fbd2f40cd3
refs/heads/master: 15c17232fbd1f7687c740c3c26f9e7f337bd9e36
20 changes: 10 additions & 10 deletions trunk/drivers/dma/amba-pl08x.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ static u32 pl08x_getbytes_chan(struct pl08x_dma_chan *plchan)
}

/* Sum up all queued transactions */
if (!list_empty(&plchan->desc_list)) {
if (!list_empty(&plchan->pend_list)) {
struct pl08x_txd *txdi;
list_for_each_entry(txdi, &plchan->desc_list, node) {
list_for_each_entry(txdi, &plchan->pend_list, node) {
bytes += txdi->len;
}
}
Expand Down Expand Up @@ -880,9 +880,9 @@ static void pl08x_free_txd_list(struct pl08x_driver_data *pl08x,
struct pl08x_txd *txdi = NULL;
struct pl08x_txd *next;

if (!list_empty(&plchan->desc_list)) {
if (!list_empty(&plchan->pend_list)) {
list_for_each_entry_safe(txdi,
next, &plchan->desc_list, node) {
next, &plchan->pend_list, node) {
list_del(&txdi->node);
pl08x_free_txd(pl08x, txdi);
}
Expand Down Expand Up @@ -1183,10 +1183,10 @@ static void pl08x_issue_pending(struct dma_chan *chan)
}

/* Take the first element in the queue and execute it */
if (!list_empty(&plchan->desc_list)) {
if (!list_empty(&plchan->pend_list)) {
struct pl08x_txd *next;

next = list_first_entry(&plchan->desc_list,
next = list_first_entry(&plchan->pend_list,
struct pl08x_txd,
node);
list_del(&next->node);
Expand All @@ -1213,7 +1213,7 @@ static int pl08x_prep_channel_resources(struct pl08x_dma_chan *plchan,

spin_lock_irqsave(&plchan->lock, plchan->lockflags);

list_add_tail(&txd->node, &plchan->desc_list);
list_add_tail(&txd->node, &plchan->pend_list);

/*
* See if we already have a physical channel allocated,
Expand Down Expand Up @@ -1571,10 +1571,10 @@ static void pl08x_tasklet(unsigned long data)
* If a new descriptor is queued, set it up
* plchan->at is NULL here
*/
if (!list_empty(&plchan->desc_list)) {
if (!list_empty(&plchan->pend_list)) {
struct pl08x_txd *next;

next = list_first_entry(&plchan->desc_list,
next = list_first_entry(&plchan->pend_list,
struct pl08x_txd,
node);
list_del(&next->node);
Expand Down Expand Up @@ -1736,7 +1736,7 @@ static int pl08x_dma_init_virtual_channels(struct pl08x_driver_data *pl08x,
chan->lc = 0;

spin_lock_init(&chan->lock);
INIT_LIST_HEAD(&chan->desc_list);
INIT_LIST_HEAD(&chan->pend_list);
tasklet_init(&chan->tasklet, pl08x_tasklet,
(unsigned long) chan);

Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/amba/pl08x.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ enum pl08x_dma_chan_state {
* @runtime_direction: current direction of this channel according to
* runtime config
* @lc: last completed transaction on this channel
* @desc_list: queued transactions pending on this channel
* @pend_list: queued transactions pending on this channel
* @at: active transaction on this channel
* @lockflags: sometimes we let a lock last between two function calls,
* especially prep/submit, and then we need to store the IRQ flags
Expand All @@ -179,7 +179,7 @@ struct pl08x_dma_chan {
dma_addr_t runtime_addr;
enum dma_data_direction runtime_direction;
dma_cookie_t lc;
struct list_head desc_list;
struct list_head pend_list;
struct pl08x_txd *at;
unsigned long lockflags;
spinlock_t lock;
Expand Down

0 comments on commit 6c7ab50

Please sign in to comment.