lkml.org 
[lkml]   [2015]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH RFC 2/2] ARM: pxa: transition to dmaengine phase 1
Date
On Saturday 14 February 2015 23:47:33 Robert Jarzmik wrote:
> @@ -294,7 +294,8 @@ int pxa_request_dma (char *name, pxa_dma_prio prio,
> /* try grabbing a DMA channel with the requested priority */
> for (i = 0; i < num_dma_channels; i++) {
> if ((dma_channels[i].prio == prio) &&
> - !dma_channels[i].name) {
> + !dma_channels[i].name &&
> + !mmp_pdma_toggle_reserved_channel(i)) {
> found = 1;
> break;
> }
>

How is the order between the two enforced? I.e. can it be that the dmaengine
driver uses the same channel for a different slave before we get here?

If this is ensured to work, I'm fine with your approach.

Arnd


\
 
 \ /
  Last update: 2015-02-16 11:41    [W:0.102 / U:9.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site