Re: [RESEND PATCH] dmaengine: pxa: add a default requestor policy

2018-05-30 Thread Vinod
On 29-05-18, 21:13, Robert Jarzmik wrote: > Vinod writes: > > > On 26-05-18, 11:54, Robert Jarzmik wrote: > >> @@ -762,6 +762,8 @@ static void pxad_free_chan_resources(struct dma_chan > >> *dchan) > >>dma_pool_destroy(chan->desc_pool); > >>chan->desc_pool = NULL; > >> > >> + chan->drc

Re: [RESEND PATCH] dmaengine: pxa: add a default requestor policy

2018-05-29 Thread Robert Jarzmik
Vinod writes: > On 26-05-18, 11:54, Robert Jarzmik wrote: >> @@ -762,6 +762,8 @@ static void pxad_free_chan_resources(struct dma_chan >> *dchan) >> dma_pool_destroy(chan->desc_pool); >> chan->desc_pool = NULL; >> >> +chan->drcmr = (u32)-1; > > why not use U32_MAX for this? But of

Re: [RESEND PATCH] dmaengine: pxa: add a default requestor policy

2018-05-29 Thread Vinod
On 26-05-18, 11:54, Robert Jarzmik wrote: > @@ -762,6 +762,8 @@ static void pxad_free_chan_resources(struct dma_chan > *dchan) > dma_pool_destroy(chan->desc_pool); > chan->desc_pool = NULL; > > + chan->drcmr = (u32)-1; why not use U32_MAX for this? -- ~Vinod

[RESEND PATCH] dmaengine: pxa: add a default requestor policy

2018-05-26 Thread Robert Jarzmik
As what former drcmr -1 value meant, add a this as a default to each channel, ie. that by default no requestor line is used. This is specifically used for network drivers smc91x and smc911x, and needed for their port to slave maps. Cc: Arnd Bergmann Signed-off-by: Robert Jarzmik --- drivers/dm

[PATCH] dmaengine: pxa: add a default requestor policy

2018-05-25 Thread Robert Jarzmik
As what former drcmr -1 value meant, add a this as a default to each channel, ie. that by default no requestor line is used. This is specifically used for network drivers smc91x and smc911x, and needed for their port to slave maps. Cc: Arnd Bergmann Signed-off-by: Robert Jarzmik --- drivers/dm