* [PATCH] dmaengine: sirf: Add device_slave_caps interface
@ 2013-12-23 12:19 Barry Song
2014-01-20 7:47 ` Vinod Koul
0 siblings, 1 reply; 4+ messages in thread
From: Barry Song @ 2013-12-23 12:19 UTC (permalink / raw)
To: linux-arm-kernel
From: Rongjun Ying <rongjun.ying@csr.com>
this patch adds device_slave_caps() callback as SiRF SoC sound drivers
depend on it.
Signed-off-by: Rongjun Ying <rongjun.ying@csr.com>
Signed-off-by: Barry Song <Barry.Song@csr.com>
---
drivers/dma/sirf-dma.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c
index 6aec3ad..d4d3a31 100644
--- a/drivers/dma/sirf-dma.c
+++ b/drivers/dma/sirf-dma.c
@@ -640,6 +640,25 @@ bool sirfsoc_dma_filter_id(struct dma_chan *chan, void *chan_id)
}
EXPORT_SYMBOL(sirfsoc_dma_filter_id);
+#define SIRFSOC_DMA_BUSWIDTHS \
+ (BIT(DMA_SLAVE_BUSWIDTH_UNDEFINED) | \
+ BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | \
+ BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) | \
+ BIT(DMA_SLAVE_BUSWIDTH_4_BYTES) | \
+ BIT(DMA_SLAVE_BUSWIDTH_8_BYTES))
+
+static int sirfsoc_dma_device_slave_caps(struct dma_chan *dchan,
+ struct dma_slave_caps *caps)
+{
+ caps->src_addr_widths = SIRFSOC_DMA_BUSWIDTHS;
+ caps->dstn_addr_widths = SIRFSOC_DMA_BUSWIDTHS;
+ caps->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
+ caps->cmd_pause = true;
+ caps->cmd_terminate = true;
+
+ return 0;
+}
+
static int sirfsoc_dma_probe(struct platform_device *op)
{
struct device_node *dn = op->dev.of_node;
@@ -712,6 +731,7 @@ static int sirfsoc_dma_probe(struct platform_device *op)
dma->device_tx_status = sirfsoc_dma_tx_status;
dma->device_prep_interleaved_dma = sirfsoc_dma_prep_interleaved;
dma->device_prep_dma_cyclic = sirfsoc_dma_prep_cyclic;
+ dma->device_slave_caps = sirfsoc_dma_device_slave_caps;
INIT_LIST_HEAD(&dma->channels);
dma_cap_set(DMA_SLAVE, dma->cap_mask);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] dmaengine: sirf: Add device_slave_caps interface
2013-12-23 12:19 [PATCH] dmaengine: sirf: Add device_slave_caps interface Barry Song
@ 2014-01-20 7:47 ` Vinod Koul
2014-01-20 7:50 ` Vinod Koul
0 siblings, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2014-01-20 7:47 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Dec 23, 2013 at 08:19:21PM +0800, Barry Song wrote:
> From: Rongjun Ying <rongjun.ying@csr.com>
>
> this patch adds device_slave_caps() callback as SiRF SoC sound drivers
> depend on it.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] dmaengine: sirf: Add device_slave_caps interface
2014-01-20 7:47 ` Vinod Koul
@ 2014-01-20 7:50 ` Vinod Koul
2014-01-20 10:24 ` Barry Song
0 siblings, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2014-01-20 7:50 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Jan 20, 2014 at 01:17:57PM +0530, Vinod Koul wrote:
> On Mon, Dec 23, 2013 at 08:19:21PM +0800, Barry Song wrote:
> > From: Rongjun Ying <rongjun.ying@csr.com>
> >
> > this patch adds device_slave_caps() callback as SiRF SoC sound drivers
> > depend on it.
>
> Applied, thanks
Btw you should send incremental patch for granurity reporting after the merge
window. Those changes are getting merged thru ASoC tree.
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] dmaengine: sirf: Add device_slave_caps interface
2014-01-20 7:50 ` Vinod Koul
@ 2014-01-20 10:24 ` Barry Song
0 siblings, 0 replies; 4+ messages in thread
From: Barry Song @ 2014-01-20 10:24 UTC (permalink / raw)
To: linux-arm-kernel
2014/1/20 Vinod Koul <vinod.koul@intel.com>:
> On Mon, Jan 20, 2014 at 01:17:57PM +0530, Vinod Koul wrote:
>> On Mon, Dec 23, 2013 at 08:19:21PM +0800, Barry Song wrote:
>> > From: Rongjun Ying <rongjun.ying@csr.com>
>> >
>> > this patch adds device_slave_caps() callback as SiRF SoC sound drivers
>> > depend on it.
>>
>> Applied, thanks
>
> Btw you should send incremental patch for granurity reporting after the merge
> window. Those changes are getting merged thru ASoC tree.
yes. Rongjun is now handling the audio stuff with ASoC guys.
>
> --
> ~Vinod
-barry
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-20 10:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-23 12:19 [PATCH] dmaengine: sirf: Add device_slave_caps interface Barry Song
2014-01-20 7:47 ` Vinod Koul
2014-01-20 7:50 ` Vinod Koul
2014-01-20 10:24 ` Barry Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).