From patchwork Fri Jul 6 03:55:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 141243 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2644045ljj; Thu, 5 Jul 2018 20:56:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexhi0V4Ob2cySVij+FjmQS03zx5D58cEXhRZQ7jXatgfaLVjb+/FFyyUwaF1XbsOsqn1hs X-Received: by 2002:a65:5c42:: with SMTP id v2-v6mr1723195pgr.224.1530849394192; Thu, 05 Jul 2018 20:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530849394; cv=none; d=google.com; s=arc-20160816; b=B+yG9YP+VcG3R9+9q9772ljg7NOixbtmmzb4pREPugZ0Ach3eeefqP9Q98Pv5XMSv4 1yoSUWEisEJqNesT6MIc/ZD1jwqg7Dpxc2EgY53nn6zpWHiJjD8FXZDahUGyNSreDN/S Wy7e2aGrPE/UDN0yDMDcClt26KXKbvo4OOvOtfPAAlcf72k/2j0rKL8UHQp3heEoKOMQ WtbOs1qsFs0e9Nj6kbDXG2bE7dlTJJJo8N7LSViHqyU5Ama0uhLTTXzHqEtLsCjnuRjq ewNc+Zjg2B3lwTgH8cw8JNwqqOyYSLmAgmX/tAeM45ExZLcASziAmqsv5lQotVuuOX1X +O2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=TD8t1Fa+ZrXOZup0ei0OCjbqTyiFQGfQmxGO8lP+srY=; b=PV/E3ikIkYyL7WaRIGnHA1F+bCX5yE/H/JXTcUsV0HHiDY7RM3t5kPk9yMKAQzOpuO MrqyV2wgYEjTKjBVwcb7501enAi6C+a/KTaly9UmYDgk2vBhL2AP/ORVaYGwNi7VySGs r+/4+cipVrYREyy7RUramQ9dfA6ta0dNTU9yo6sEPa9/SF0FgikMcFiIAvFqymtheXGe YP1w3ydRVbHL+06R+Tbrj914qfOn9Ox/jd8jXgxSswPBxqXvBdC3fidpkVPmi1a56ezh DPfGUEb+CWUq53/Jvb8heZ2e3nQ0E3zu/xuBbn0thYFOkrRkjCh110ckbQ2tehcVyoyV PeZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eS26KFLk; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si7211966plh.492.2018.07.05.20.56.33; Thu, 05 Jul 2018 20:56:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eS26KFLk; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932566AbeGFD4d (ORCPT + 5 others); Thu, 5 Jul 2018 23:56:33 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:46788 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932213AbeGFD4a (ORCPT ); Thu, 5 Jul 2018 23:56:30 -0400 Received: by mail-pl0-f68.google.com with SMTP id 30-v6so2214673pld.13 for ; Thu, 05 Jul 2018 20:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BwRz8SkXkoINGnHo89FkceANUfssKlGQRU5dwQMEUkw=; b=eS26KFLk+3/jpPZ0kUsFykXl0xFM0RvRNGSpueq2Vx/K4XbPSUVEp3gujLRG1R6+sY xzPhoDKjdOWMOjK9ZuIPKcesgADDfO59+qsjB0PLV/kMx35t+CdYcYV94faWv1pLG5H8 B6UNl/HOhlC8/zwt9vIOjHyPPqV/ddL69bWBM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BwRz8SkXkoINGnHo89FkceANUfssKlGQRU5dwQMEUkw=; b=RQN4y194puOEhnqbbNVjE8NPfXSL/NOBtaMBlpnZkukUoM2O3EWhkAH5k+a61dXaaF P8LVeQq7HtdpgPgqdh7gOnYB6VCqUUXDSBh9gQnmTAzsLO6hx5xRexBChFlS+RR7P3I9 CsSpzjenEpVB/Em0q35cSAsGRi+bw8GdwXO7yJY53kn4ldBpsXt5K/tbNdfAxP0BWyiP QIUf/ZSK/uQzBfdqKhFtZPnCQqVgamU5V87XeCKO8O1f92pL2epvqi/lhx3TmYFLtCRC ebIJXJ3FbqQjqWxqxsFsIpF33eJcNY72JvONFQLU1hyfeDqw7YsB+lwYneEVP45Xge1M x5Qw== X-Gm-Message-State: APt69E1/VfjeR2jmaK6N0Yy/OgMBgLHnAa50mLh9xt7mrKy3JOXXJyBe L/6Y6jWuKbmx0l8w+lkXROY2Fg== X-Received: by 2002:a17:902:7c16:: with SMTP id x22-v6mr8563419pll.77.1530849390306; Thu, 05 Jul 2018 20:56:30 -0700 (PDT) Received: from localhost.localdomain ([64.64.108.33]) by smtp.gmail.com with ESMTPSA id y14-v6sm12568403pgo.22.2018.07.05.20.56.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 20:56:29 -0700 (PDT) From: Guodong Xu 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 Subject: [PATCH v2 4/4] k3dma: delete axi_config Date: Fri, 6 Jul 2018 11:55:21 +0800 Message-Id: <20180706035521.13736-5-guodong.xu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180706035521.13736-1-guodong.xu@linaro.org> References: <20180706035521.13736-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Li Yu 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 Signed-off-by: Guodong Xu --- drivers/dma/k3dma.c | 3 --- 1 file changed, 3 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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); }