Re: [PATCH] dmaengine: Remove the context argument to the prep_dma_cyclic operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 01, 2014 at 06:06:33PM +0100, Russell King - ARM Linux wrote:
> On Fri, Aug 01, 2014 at 10:14:28PM +0530, Vinod Koul wrote:
> > On Fri, Aug 01, 2014 at 12:20:10PM +0200, Laurent Pinchart wrote:
> > > The argument is always set to NULL and never used. Remove it.
> > 
> > Thats not true.
> > 
> > It was introduced in commit:
> > commit 185ecb5f4fd43911c35956d4cc7d94a1da30417f
> > Author: Alexandre Bounine <alexandre.bounine@xxxxxxx>
> > Date:   Thu Mar 8 15:35:13 2012 -0500
> > 
> >     dmaengine: add context parameter to prep_slave_sg and prep_dma_cyclic
> > 
> >     Add context parameter to device_prep_slave_sg() and device_prep_dma_cyclic()
> >     interfaces to allow passing client/target specific information associated
> >     with the data transfer.
> >     Modify all affected DMA engine drivers.
> > 
> >     Signed-off-by: Alexandre Bounine <alexandre.bounine@xxxxxxx>
> >     Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> >     Acked-by: Felipe Balbi <balbi@xxxxxx>
> >     Signed-off-by: Vinod Koul <vinod.koul@xxxxxxxxxxxxxxx>
> > 
> > This is still used by rapidio driver. This required some extra parameters
> > passed in struct rio_dma_ext.
> > 
> > I do agree this is not very elegant.
> 
> Have the rapidio folk shown any sign of implementing the cyclic DMA API?
> From what I can see from drivers/rapido/, it only uses the prep_slave_sg
> API.
No they havent so i think its good to remove the unused context argument. Will merge
this now

-- 
~Vinod

--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux