Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2069312pxa; Sun, 16 Aug 2020 22:46:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTbcEf+Z1Yzi8e1K+nOXtKCYvIAf04zdXFupHAzSOr37LPqCDz5SIfFsloVmmDy6eGtq6M X-Received: by 2002:a17:906:1911:: with SMTP id a17mr12819544eje.431.1597643190364; Sun, 16 Aug 2020 22:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597643190; cv=none; d=google.com; s=arc-20160816; b=SoC/oA7KAO2yT57pq3UniRu9nWjSXqjmKLNESyNZcpXF5zFB3YeQq0MZ3OpTy2/vaM l4CGsZ4QkU9naoz4skoynLqv8a4rnfGjLvxsvWi+IxzLpVNWKnjMwUaHmHuuDwyKZAQP /uINw0Zd6a/b8Dni6RkpiopyxxBn6sJqnKVkR2kw9i3j5Dcy8Y76SXA/KpcLPaJdo698 2l83SvbUvbAKAi6I8XM3eLt3dH2pbYnIHZNiGyI3vHqCNI7QngNjlhm0XbU6qzGHBniF 3mnYtI+QY2Fkmr5PH/ly06gRO/C1+n/BF5H+49t4GDWTPZgK4Y2uUA7QL/D4GqDbAUZO d77w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:dkim-signature; bh=rFVQZY/TgzPFkWgR1T0ek2YgbBLk7Y11m/KKONbVZsU=; b=FcY3Ckbqoq1uD2RGhva/ogpLcr/PhcIJbp0TxucvINtXyl7ccFmkcUR/8woJI9oEcY YFlnar5otxVEJsZuTjn8zHQdmZd4kTghVGcGqk9IcGunnwDJjrtFQADT6nkw/2ju355q myOwUFRe6KqUJ76mL09GwqVa534vvTp8Z97Q7+V9sKygA5S/AVA7wcCP7tZuOsFjb5Ru ICECw+LDOeh4KLzw3Og1uBoYBa/hQFuW7+xdPnmJaEmW1RIbTW6fu3XPfPTyuTdHHdoi rPmQ8ZThYU4lyIm2jYRnBlRATvMsS7dbr96ozqhxAbTtycOTyrpRn5lbHSp1CuwdElpz dINw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=TiQa2LaC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=skidata.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si10364674ejw.748.2020.08.16.22.46.07; Sun, 16 Aug 2020 22:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=TiQa2LaC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=skidata.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726591AbgHQFpe (ORCPT + 99 others); Mon, 17 Aug 2020 01:45:34 -0400 Received: from mail2.skidata.com ([91.230.2.91]:36143 "EHLO mail2.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbgHQFpd (ORCPT ); Mon, 17 Aug 2020 01:45:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=skidata.com; i=@skidata.com; q=dns/txt; s=selector1; t=1597643132; x=1629179132; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=iq6E0tROTvyWLYPqPO1Jep0gNCBrkGzldGCPeMg+7YQ=; b=TiQa2LaC6eg/8+EgVhdWz+/BS136xFBuZa7mM9clCoGr+VaF0NJ81RC6 l1YY4PERPYIct8aW7qt60fHqYW77KzNLZCkr1RONk1befRqCcXmOQhqst rynS6YSA7V4SIMCbyTPi5Hc+Xg+aYA5QZ5Kmv+BvmckHPo2p0j17CMwNo ESf+24whxtcLrLALVFu7c3P//l2A0VY5gLtcwZqiGBulWLJIOIu3cZq1k LqRRe2KXSgIWwzRZ22Itv976yeYXlp9DnpHVhCY199+vBibkeyI6SYacT A4tOFYCCu5SMRN35loVB7RnW23pqNHCFtc/ee+JDyr9dTO3yB7EjntMqI g==; IronPort-SDR: rZkcM47agA66V7rz7feaMdOluzUqk0bpZwPNFBS4nRIuINpiwtoyuu5PvhKvd7GxTCNDYB6kXY q+8aPl4488YU/sH1xOfKWdB3CMlyy7Wmb9WhpewAqI8mDDklAMKIou3zPjCur2Svcz1ng1Oj8Z Zy7WxGnwP3YJWucu6wpo6YHFvYGa5JHGgsVwTkK/rDs/Q9q8+zXUyPiuiSF72FTDQ+I8JVsk45 na+58Ifn3fOwiZaehwKqTEjAYKrWjacs9o1T8V1VGA9ce2sOYhvzzUx0Gd/5S3O54kP7NGQAU7 SbE= X-IronPort-AV: E=Sophos;i="5.76,322,1592863200"; d="scan'208";a="2642498" Date: Mon, 17 Aug 2020 07:38:20 +0200 From: Richard Leitner To: Robin Gong CC: , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v12 04/12] dmaengine: imx-sdma: remove duplicated sdma_load_context Message-ID: <20200817053820.GB551027@pcleri> References: <1597161231-32303-1-git-send-email-yibin.gong@nxp.com> <1597161231-32303-5-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1597161231-32303-5-git-send-email-yibin.gong@nxp.com> X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex6srv.skidata.net (192.168.111.84) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Acked-by: Vinod Koul 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 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