[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200817053820.GB551027@pcleri>
Date: Mon, 17 Aug 2020 07:38:20 +0200
From: Richard Leitner <richard.leitner@...data.com>
To: Robin Gong <yibin.gong@....com>
CC: <mark.rutland@....com>, <broonie@...nel.org>, <robh+dt@...nel.org>,
<catalin.marinas@....com>, <vkoul@...nel.org>,
<will.deacon@....com>, <shawnguo@...nel.org>, <festevam@...il.com>,
<s.hauer@...gutronix.de>, <martin.fuzzey@...wbird.group>,
<u.kleine-koenig@...gutronix.de>, <dan.j.williams@...el.com>,
<matthias.schiffer@...tq-group.com>, <frieder.schrempf@...tron.de>,
<r.schwebel@...gutronix.de>, <linux-spi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <kernel@...gutronix.de>,
<dmaengine@...r.kernel.org>, <linux-imx@....com>
Subject: Re: [PATCH v12 04/12] dmaengine: imx-sdma: remove duplicated
sdma_load_context
On Tue, Aug 11, 2020 at 11:53:43PM +0800, Robin Gong wrote:
> Since sdma_transfer_init() will do sdma_load_context before any
> sdma transfer, no need once more in sdma_config_channel().
>
> Signed-off-by: Robin Gong <yibin.gong@....com>
> Acked-by: Vinod Koul <vkoul@...nel.org>
Hi Robin,
thanks for the pointer to this patch.
As you suggested I've tested the two patches on my custom i.MX6DL
board. Therefore please feel free to add:
Tested-by: Richard Leitner <richard.leitner@...data.com>
regards;rl
> ---
> drivers/dma/imx-sdma.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
> index d305b80..5411e01e 100644
> --- a/drivers/dma/imx-sdma.c
> +++ b/drivers/dma/imx-sdma.c
> @@ -1137,7 +1137,6 @@ static void sdma_set_watermarklevel_for_p2p(struct sdma_channel *sdmac)
> static int sdma_config_channel(struct dma_chan *chan)
> {
> struct sdma_channel *sdmac = to_sdma_chan(chan);
> - int ret;
>
> sdma_disable_channel(chan);
>
> @@ -1177,9 +1176,7 @@ static int sdma_config_channel(struct dma_chan *chan)
> sdmac->watermark_level = 0; /* FIXME: M3_BASE_ADDRESS */
> }
>
> - ret = sdma_load_context(sdmac);
> -
> - return ret;
> + return 0;
> }
>
> static int sdma_set_channel_priority(struct sdma_channel *sdmac,
> --
> 2.7.4
>
>
--
Richard Leitner
Hardware R&D / Senior Embedded Linux Engineer
SKIDATA | Driving Your Digital Future
SKIDATA GmbH
Untersbergstraße 40 | 5083 Grödig/Salzburg | Austria
[t] +43-6246-888-4245 | [m] +43-664-88616370
[w] www.skidata.com
Powered by blists - more mailing lists