[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160713165131.GK23833@tuxbot>
Date: Wed, 13 Jul 2016 09:51:31 -0700
From: Bjorn Andersson <bjorn.andersson@...aro.org>
To: Krzysztof Kozlowski <k.kozlowski@...sung.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, hch@...radead.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Ohad Ben-Cohen <ohad@...ery.com>,
linux-remoteproc@...r.kernel.org
Subject: Re: [PATCH v6 44/46] remoteproc: qcom: Use unsigned long for
dma_attrs
On Wed 13 Jul 01:41 PDT 2016, Krzysztof Kozlowski wrote:
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@...sung.com>
>
Acked-by: Bjorn Andersson <bjorn.andersson@...aro.org>
Regards,
Bjorn
> ---
>
> Changes since v5:
> New patch.
> ---
> drivers/remoteproc/qcom_q6v5_pil.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c
> index fb4c56cc6dfc..4913ec6f9d00 100644
> --- a/drivers/remoteproc/qcom_q6v5_pil.c
> +++ b/drivers/remoteproc/qcom_q6v5_pil.c
> @@ -349,13 +349,12 @@ static void q6v5proc_halt_axi_port(struct q6v5 *qproc,
>
> static int q6v5_mpss_init_image(struct q6v5 *qproc, const struct firmware *fw)
> {
> - DEFINE_DMA_ATTRS(attrs);
> + unsigned long dma_attrs = DMA_ATTR_FORCE_CONTIGUOUS;
> dma_addr_t phys;
> void *ptr;
> int ret;
>
> - dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, &attrs);
> - ptr = dma_alloc_attrs(qproc->dev, fw->size, &phys, GFP_KERNEL, &attrs);
> + ptr = dma_alloc_attrs(qproc->dev, fw->size, &phys, GFP_KERNEL, dma_attrs);
> if (!ptr) {
> dev_err(qproc->dev, "failed to allocate mdt buffer\n");
> return -ENOMEM;
> @@ -372,7 +371,7 @@ static int q6v5_mpss_init_image(struct q6v5 *qproc, const struct firmware *fw)
> else if (ret < 0)
> dev_err(qproc->dev, "MPSS header authentication failed: %d\n", ret);
>
> - dma_free_attrs(qproc->dev, fw->size, ptr, phys, &attrs);
> + dma_free_attrs(qproc->dev, fw->size, ptr, phys, dma_attrs);
>
> return ret < 0 ? ret : 0;
> }
> --
> 1.9.1
>
Powered by blists - more mailing lists