From: Vinod Koul <vinod.koul@intel.com>
To: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Cc: Dan Williams <dan.j.williams@intel.com>,
dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH] dmaengine: bam-dma: fill slave directions bit mask
Date: Wed, 4 Mar 2015 21:32:13 +0530 [thread overview]
Message-ID: <20150304160213.GT2613@intel.com> (raw)
In-Reply-To: <1425482710-23052-1-git-send-email-stanimir.varbanov@linaro.org>
On Wed, Mar 04, 2015 at 05:25:10PM +0200, Stanimir Varbanov wrote:
> 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;
You need to fill other fields, src/dstn_addr_widths and
residue_granularity...
--
~Vinod
next prev parent reply other threads:[~2015-03-04 16:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 15:25 [PATCH] dmaengine: bam-dma: fill slave directions bit mask Stanimir Varbanov
2015-03-04 16:02 ` Vinod Koul [this message]
2015-03-04 19:44 ` Andy Gross
2015-03-05 9:44 ` Stanimir Varbanov
2015-03-04 19:23 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150304160213.GT2613@intel.com \
--to=vinod.koul@intel.com \
--cc=dan.j.williams@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stanimir.varbanov@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox