devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guodong Xu <guodong.xu@linaro.org>
To: vkoul@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com,
	dan.j.williams@intel.com, xuwei5@hisilicon.com,
	catalin.marinas@arm.com, will.deacon@arm.com
Cc: liyu65@hisilicon.com, suzhuangluan@hisilicon.com,
	xuhongtao8@hisilicon.com, zhongkaihua@huawei.com,
	xuezhiliang@hisilicon.com, xupeng7@huawei.com,
	sunliang10@huawei.com, fengbaopeng@hisilicon.com,
	dmaengine@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Guodong Xu <guodong.xu@linaro.org>
Subject: [PATCH v2 4/4] k3dma: delete axi_config
Date: Fri,  6 Jul 2018 11:55:21 +0800	[thread overview]
Message-ID: <20180706035521.13736-5-guodong.xu@linaro.org> (raw)
In-Reply-To: <20180706035521.13736-1-guodong.xu@linaro.org>

From: Li Yu <liyu65@hisilicon.com>

Axi_config controls whether DMA resources can be accessed in non-secure
mode, such as linux kernel. The setting is actually done in
bootloader stage.

This patch removes axi_config from k3dma driver.

Signed-off-by: Li Yu <liyu65@hisilicon.com>
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
---
 drivers/dma/k3dma.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c
index 33efb541acb2..4542e703ec85 100644
--- a/drivers/dma/k3dma.c
+++ b/drivers/dma/k3dma.c
@@ -52,8 +52,6 @@
 #define CX_SRC			0x814
 #define CX_DST			0x818
 #define CX_CFG			0x81c
-#define AXI_CFG			0x820
-#define AXI_CFG_DEFAULT		0x201201
 
 #define CX_LLI_CHAIN_EN		0x2
 #define CX_CFG_EN		0x1
@@ -158,7 +156,6 @@ static void k3_dma_set_desc(struct k3_dma_phy *phy, struct k3_desc_hw *hw)
 	writel_relaxed(hw->count, phy->base + CX_CNT0);
 	writel_relaxed(hw->saddr, phy->base + CX_SRC);
 	writel_relaxed(hw->daddr, phy->base + CX_DST);
-	writel_relaxed(AXI_CFG_DEFAULT, phy->base + AXI_CFG);
 	writel_relaxed(hw->config, phy->base + CX_CFG);
 }
 
-- 
2.17.1

      parent reply	other threads:[~2018-07-06  3:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06  3:55 [PATCH v2 0/4] k3dma: add support to reserved channels Guodong Xu
2018-07-06  3:55 ` [PATCH v2 1/4] dt-bindings: k3dma: add optional property hisilicon,dma-min-chan Guodong Xu
2018-07-09 10:34   ` Vinod
2018-07-11 16:09     ` Rob Herring
2018-07-06  3:55 ` [PATCH v2 2/4] k3dma: add support to reserved minimum channels Guodong Xu
2018-07-06  3:55 ` [PATCH v2 3/4] arm64: dts: hi3660: update property name hisilicon,dma-min-chan Guodong Xu
2018-07-06  3:55 ` Guodong Xu [this message]

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=20180706035521.13736-5-guodong.xu@linaro.org \
    --to=guodong.xu@linaro.org \
    --cc=catalin.marinas@arm.com \
    --cc=dan.j.williams@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=fengbaopeng@hisilicon.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liyu65@hisilicon.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sunliang10@huawei.com \
    --cc=suzhuangluan@hisilicon.com \
    --cc=vkoul@kernel.org \
    --cc=will.deacon@arm.com \
    --cc=xuezhiliang@hisilicon.com \
    --cc=xuhongtao8@hisilicon.com \
    --cc=xupeng7@huawei.com \
    --cc=xuwei5@hisilicon.com \
    --cc=zhongkaihua@huawei.com \
    /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;
as well as URLs for NNTP newsgroup(s).