public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine: bam-dma: fill slave directions bit mask
@ 2015-03-04 15:25 Stanimir Varbanov
  2015-03-04 16:02 ` Vinod Koul
  2015-03-04 19:23 ` Stephen Boyd
  0 siblings, 2 replies; 5+ messages in thread
From: Stanimir Varbanov @ 2015-03-04 15:25 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Dan Williams, dmaengine, linux-kernel, linux-arm-msm,
	Stanimir Varbanov

This will avoid warning during async device registration.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
---
 drivers/dma/qcom_bam_dma.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/dma/qcom_bam_dma.c b/drivers/dma/qcom_bam_dma.c
index c3113e3..cc9e5ee 100644
--- a/drivers/dma/qcom_bam_dma.c
+++ b/drivers/dma/qcom_bam_dma.c
@@ -1143,6 +1143,7 @@ static int bam_dma_probe(struct platform_device *pdev)
 	dma_cap_set(DMA_SLAVE, bdev->common.cap_mask);
 
 	/* initialize dmaengine apis */
+	bdev->common.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
 	bdev->common.device_alloc_chan_resources = bam_alloc_chan;
 	bdev->common.device_free_chan_resources = bam_free_chan;
 	bdev->common.device_prep_slave_sg = bam_prep_slave_sg;
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-05  9:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 15:25 [PATCH] dmaengine: bam-dma: fill slave directions bit mask Stanimir Varbanov
2015-03-04 16:02 ` Vinod Koul
2015-03-04 19:44   ` Andy Gross
2015-03-05  9:44     ` Stanimir Varbanov
2015-03-04 19:23 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox