Re: [PATCH 1/6] dma: acpi-dma: introduce ACPI DMA helpers

2013-03-29 Thread Mika Westerberg
On Sat, Mar 30, 2013 at 02:05:43AM +0530, Vinod Koul wrote: > On Wed, Mar 27, 2013 at 10:57:57AM +0200, Andy Shevchenko wrote: > > + * @dev: struct device to get DMA request from > > + * @index: index of FixedDMA descriptor for @dev > > + * > > + * Returns pointer to appropriate dma channel on su

Re: [PATCH 1/6] dma: acpi-dma: introduce ACPI DMA helpers

2013-03-29 Thread Vinod Koul
On Wed, Mar 27, 2013 at 10:57:57AM +0200, Andy Shevchenko wrote: > + * @dev: struct device to get DMA request from > + * @index: index of FixedDMA descriptor for @dev > + * > + * Returns pointer to appropriate dma channel on success or NULL on error. > + */ > +struct dma_chan *acpi_dma_reques

[PATCH 1/6] dma: acpi-dma: introduce ACPI DMA helpers

2013-03-27 Thread Andy Shevchenko
There is a new generic API to get a DMA channel for a slave device (commit 9a6cecc8 "dmaengine: add helper function to request a slave DMA channel"). In similar fashion to the DT case (commit aa3da644 "of: Add generic device tree DMA helpers") we introduce helpers to the DMAC drivers which are enum