Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273851
b: refs/heads/master
c: 9704efa
h: refs/heads/master
i:
  273849: afbd11a
  273847: a0c0db7
v: v3
  • Loading branch information
Viresh Kumar authored and Vinod Koul committed Aug 8, 2011
1 parent f30ce75 commit 16aced1
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 90b44f8ffdf6c66d190ee71b330009bf7f11a208
refs/heads/master: 9704efaa52ab18eb3504c4e0bc421c1d01b7981a
6 changes: 6 additions & 0 deletions trunk/drivers/dma/dmatest.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ static int dmatest_func(void *data)
pr_notice("%s: terminating after %u tests, %u failures (status %d)\n",
thread_name, total_tests, failed_tests, ret);

/* terminate all transfers on specified channels */
chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
if (iterations > 0)
while (!kthread_should_stop()) {
DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wait_dmatest_exit);
Expand All @@ -499,6 +501,10 @@ static void dmatest_cleanup_channel(struct dmatest_chan *dtc)
list_del(&thread->node);
kfree(thread);
}

/* terminate all transfers on specified channels */
dtc->chan->device->device_control(dtc->chan, DMA_TERMINATE_ALL, 0);

kfree(dtc);
}

Expand Down

0 comments on commit 16aced1

Please sign in to comment.