Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3824840imm; Sat, 21 Jul 2018 04:09:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc0OzzGWWtvRGftJEZN+zJ4GcK1pC9uLZQetrvfsEIlB3f7JMkseZxVCvTPtFkVaO9UWrZL X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr5369343pgb.274.1532171398215; Sat, 21 Jul 2018 04:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532171398; cv=none; d=google.com; s=arc-20160816; b=RhheNiKQWrb6BM/y9hCJJICh4iOq1Gr4ZXac5f4XZWDW9aKhAwEcl+qsiOWRM5TNfH gYvx1PKkzBQvZL2gPXdjrjZv3gn6m33qTh7sJ7DthNAYmjmuiwFpO0bDPGmzycvWw0EY KgfpaEy2Mb1KasTjawZ1Fcldz6MiNZ+hNwHzYdY9jmJWAnmBrwSLLDamPUqCPMaGQ7F1 t2xsWqAGgi4Z/5cI2GrdQYzOZCGu3fexixgI55GyKSvaokFzRlPL+MLqwkAe4iXP+gis 3cFkVMm1NT2xVl2iMoyQwDqTbs6AqLsNK3Uc+Mnbdbs3lPuiaGYzToIfUsFBXekxb9y9 3FRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=7Zor4s3i7rKhDiDB7DPDYYxD+li64FRa/bj5CAFsKZM=; b=Z1wiJfb2g23zn1I/0KMoUogEDCR+ZBq1h1dLfrdQ1aceXh5AW9H4usdsGS+RxZbowQ W3jwSRar7WI1CNmTEpEymXY4ViAgp1Dnr34WUxJI8uEMAzqGab/uHXknHewJZnyRup2l j83xnsVuprDhtCX26vjmRCh5gvXrqvZAooQmwRvOt++HHUMcmkfaBq5nVQvvVza0VkAI /lqxfhtL2S7Jd03vOuvZ+0kd6p2ZHn3Gz6cTQHT+Zh7iAt5oKgAHzs3bWetBBmw18nCe ofQkdJm7A3q/aCJx4U2H/qFV5m8Hiz3/89GpxjXlZ+ElE9oieIymR2+P0ByaluF7hYG0 5Ctw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=rlmDgqW8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 190-v6si3955600pgd.673.2018.07.21.04.09.44; Sat, 21 Jul 2018 04:09:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=rlmDgqW8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728377AbeGUMAO (ORCPT + 99 others); Sat, 21 Jul 2018 08:00:14 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:43548 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728170AbeGUMAN (ORCPT ); Sat, 21 Jul 2018 08:00:13 -0400 From: Paul Cercueil To: Vinod Koul , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , Zubair Lutfullah Kakakhel Cc: Mathieu Malaterre , Daniel Silsby , Paul Cercueil , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: [PATCH v3 10/18] dmaengine: dma-jz4780: Enable Fast DMA to the AIC Date: Sat, 21 Jul 2018 13:06:35 +0200 Message-Id: <20180721110643.19624-11-paul@crapouillou.net> In-Reply-To: <20180721110643.19624-1-paul@crapouillou.net> References: <20180721110643.19624-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1532171270; bh=7Zor4s3i7rKhDiDB7DPDYYxD+li64FRa/bj5CAFsKZM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=rlmDgqW8xn+kDIlRNFwltcdCABjTXH7qMXbfusMrmCp5SBCMU7J5fgwN61eIe+GaI1wLR2xKWGHuWlwdF+/2KW+nEZ87OfCe/u1qgkcwGDQLrLy9oBtm1ZxNYUZedBELIIU/CUnmeUr+CE3Yo2N21D8HH3JLA9DkBTAJ6qythro= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the fast DMA bit set, the DMA will transfer twice as much data per clock period to the AIC, so there is little point not to set it. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Reviewed-by: PrasannaKumar Muralidharan --- drivers/dma/dma-jz4780.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) v2: No change v3: No change diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index 88ce3f0157f6..3c9d3952e23a 100644 --- a/drivers/dma/dma-jz4780.c +++ b/drivers/dma/dma-jz4780.c @@ -52,6 +52,7 @@ #define JZ_DMA_DMAC_DMAE BIT(0) #define JZ_DMA_DMAC_AR BIT(2) #define JZ_DMA_DMAC_HLT BIT(3) +#define JZ_DMA_DMAC_FAIC BIT(27) #define JZ_DMA_DMAC_FMSC BIT(31) #define JZ_DMA_DRT_AUTO 0x8 @@ -941,8 +942,8 @@ static int jz4780_dma_probe(struct platform_device *pdev) * Also set the FMSC bit - it increases MSC performance, so it makes * little sense not to enable it. */ - jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DMAC, - JZ_DMA_DMAC_DMAE | JZ_DMA_DMAC_FMSC); + jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DMAC, JZ_DMA_DMAC_DMAE | + JZ_DMA_DMAC_FAIC | JZ_DMA_DMAC_FMSC); if (jzdma->version == ID_JZ4780) jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DMACP, 0); -- 2.11.0