lkml.org 
[lkml]   [2019]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 3/3] dmaengine: Support for requesting channels preferring DMA domain controller
On 09-09-19, 08:56, Peter Ujfalusi wrote:

> >> -struct dma_chan *dma_request_chan_by_mask(const dma_cap_mask_t *mask)
> >> +struct dma_chan *dma_domain_request_chan_by_mask(struct device *dev,
> >> + const dma_cap_mask_t *mask)
> >
> > should we really use dma_request_chan_by_mask() why not create a new api
> > dma_request_chan_by_domain() and use that, it falls back to
> > dma_request_chan_by_mask() if it doesnt find a valid domain!
>
> So:
> struct dma_chan *dma_request_chan_by_domain(struct device *dev,
> const dma_cap_mask_t *mask);

Yeah that looks better to me :)

--
~Vinod

\
 
 \ /
  Last update: 2019-09-12 18:51    [W:2.121 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site