From patchwork Fri Jun 22 03:24:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 139566 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp362249lji; Thu, 21 Jun 2018 20:24:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJjbzke5qN/Qxgr3LYP/0iakeMHgGoek5st40Z1oPfzLBYGGcLqoqeU0XQ4NHp2lRAplCb6 X-Received: by 2002:a17:902:904c:: with SMTP id w12-v6mr21747656plz.34.1529637895175; Thu, 21 Jun 2018 20:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529637895; cv=none; d=google.com; s=arc-20160816; b=awxuHRwRkP69AgTjrHsTGWke+a3UcJU6LJNn0dPjb3sO0jiyLno8+5+Xa85OT0/3JJ Tk2YTfvJ/uMnT0EuU1NGhz05xfP3sqXMLxsQ8zc3x7l3F4MRsPdHoqN5/LZU6JdJJFKv BlS/IEWElg/vdhhDO/RZGHvn5WXPtlZIld1RG2ItMkiD/bnDeeF7bFHWf6ipx26MTx3p HkVdQaphVc0jsmFaizN5E7rKbIBrnbF15vWy86R22SaO0IkKBqIwjzfVEzx45gj4pUKS 7ES9VBcIMNDEwul8SCcmSnidEmrXyD6IPBftRimGDvqMo/2Dh/yKZ7g65SrReZni4PGZ sAxw== 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=paUx3mbJ/fGKTrCzR9iWMd0cKrJ2DrCtPIBJlU27mGU=; b=qSIvOWqE8oGnQla/PoGJy7rttgw65TvnVE1Ae+GE6eHxu1X/n8DTnhG1X5x/qrwYB1 SATkgEOCBC2n/SfhR3zRJZ+wNsuyBi0j8unkBJiAy7hZVHGxvYW3LTVRs/L14SBXCnjg n5eEKqhr8bhqeHi40RYKSxqSZstxdljvUtQpd8mFdSN737QdKnfQNOjldTfJD08iHTWn PkOIC1DEXDtPoNHt8G3ASGFo4Rm16ZqFXwxrknnAJcgbqsT+xf1Fyw/MX6iMCNiJ959l syqEeKCTj+5uj0Bz/K9bQfpNhTxh/c/5DDlT8UgSS4pXEW+mOgwhf2znhQjsTp5GdEVn 9y/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DQcFbwHd; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si6919469pfa.38.2018.06.21.20.24.54; Thu, 21 Jun 2018 20:24:55 -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=@linaro.org header.s=google header.b=DQcFbwHd; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934394AbeFVDYv (ORCPT + 30 others); Thu, 21 Jun 2018 23:24:51 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:41324 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934351AbeFVDYq (ORCPT ); Thu, 21 Jun 2018 23:24:46 -0400 Received: by mail-pf0-f196.google.com with SMTP id a11-v6so2503150pff.8 for ; Thu, 21 Jun 2018 20:24:46 -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=paUx3mbJ/fGKTrCzR9iWMd0cKrJ2DrCtPIBJlU27mGU=; b=DQcFbwHdVjXgwNHsPmH/5+YmkRsdmeVOJf+ZekByCAcieL3gIrpms653HeFKzfHmbe zK7D1nY2PHQwPJLcsmnD4nqhIUQ9fJJrK5ml8ui8oQdrl4YmGZ52vSpzz87d/aLcSZxI rCdUgfL0BZ2t9X0ovS3oeC5RUHxWCli6Fw2ig= 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=paUx3mbJ/fGKTrCzR9iWMd0cKrJ2DrCtPIBJlU27mGU=; b=BtRAT/CpCHvtAX/H4vCVtWCi4QHlIy7qPcGc2KpLefpeZkn6WLNN900FadIGPazCYc xXW6KKMA/D8ThMUsWPVggVVmJo57jng3TjhrS90B72rcpoR/4l98OLNlNGOjbgnOTlz7 aPy6X+J2iSSa56ENR9cs7SN4bLR3/Rbltq+7ZTa4n+EAOOLnxme4n9tjyvKtArV2vHXO gxTzzDxraOe/g6PBtTZU0B8H/Vfqz0CY4sQ8L+/boVAX9yxQCRbxHUIQL9bnqkemUHhu HVNztxn09R4bLEltXikFawtV6p+SRrVqTpfS+kihYoLYTYTtyVlSh8Ctv6gGqHVRy6FW Vg9w== X-Gm-Message-State: APt69E1I8Tf4NFLBD6GiUk1JGS+vHQuSRoTgvhm25nad3HQT6In1E4In LuUOnGeYxU+KTXnHDW6sKK/TSw== X-Received: by 2002:a65:4146:: with SMTP id x6-v6mr24869475pgp.221.1529637886034; Thu, 21 Jun 2018 20:24:46 -0700 (PDT) Received: from localhost.localdomain ([45.56.155.153]) by smtp.gmail.com with ESMTPSA id a23-v6sm9286253pfn.113.2018.06.21.20.24.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 20:24:45 -0700 (PDT) From: Guodong Xu To: vkoul@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, dan.j.williams@intel.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, Guodong Xu Subject: [PATCH 3/3] k3dma: delete axi_config Date: Fri, 22 Jun 2018 11:24:16 +0800 Message-Id: <20180622032416.20133-4-guodong.xu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622032416.20133-1-guodong.xu@linaro.org> References: <20180622032416.20133-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index 13cec12742e3..ddd7d1e054c0 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); }