[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180809023611.GP2395@vkoul-mobl>
Date: Thu, 9 Aug 2018 08:06:11 +0530
From: Vinod <vkoul@...nel.org>
To: Peter Ujfalusi <peter.ujfalusi@...com>
Cc: Huang Shijie <sjhuang@...vatar.ai>, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org, dave.jiang@...el.com,
radhey.shyam.pandey@...inx.com, appana.durga.rao@...inx.com,
jmkrzyszt@...il.com, gomonovych@...il.com, keescook@...omium.org,
horms+renesas@...ge.net.au, geert+renesas@...der.be,
shawnguo@...nel.org, baoyou.xie@...aro.org,
michal.simek@...inx.com, baohua@...nel.org,
ludovic.desroches@...rochip.com, linus.walleij@...aro.org,
david.brown@...aro.org
Subject: Re: [PATCH 07/46] dmaengine: omap-dma: use
dmaenginem_async_device_register to simplify the code
On 03-08-18, 10:47, Peter Ujfalusi wrote:
>
>
> On 2018-08-03 10:19, Huang Shijie wrote:
> > Use dmaenginem_async_device_register to simplify the code:
> > remove dma_async_device_unregister
> >
> > Signed-off-by: Huang Shijie <sjhuang@...vatar.ai>
> > ---
> > drivers/dma/ti/omap-dma.c | 5 +----
> > 1 file changed, 1 insertion(+), 4 deletions(-)
> >
> > diff --git a/drivers/dma/ti/omap-dma.c b/drivers/dma/ti/omap-dma.c
> > index a4a931ddf6f6..085748c6eb67 100644
> > --- a/drivers/dma/ti/omap-dma.c
> > +++ b/drivers/dma/ti/omap-dma.c
> > @@ -1566,7 +1566,7 @@ static int omap_dma_probe(struct platform_device *pdev)
> > }
> > }
> >
> > - rc = dma_async_device_register(&od->ddev);
> > + rc = dmaenginem_async_device_register(&od->ddev);
>
> Why it is dmaenginem_async_device_register() and not aligned other
> resource managed functions (devm_* dmam_*), like
> devm_dma_async_device_register()
>
> and in dmaenginem_async_device_register() what is the 'm' in dmaenginem ?
> DMAengine Managed?
yup, as you rightly said we could have done devm_dmaengine... or like
few others do dmaenginem_
Yes it makes a little odd API but am trying to move away from dma_ to
dmaengine_ for everything new..
--
~Vinod
Powered by blists - more mailing lists