Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1336921imm; Thu, 5 Jul 2018 20:57:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfprHoyH1ZEgyEGlosT/RsyPZMIucwJUoaxlv33cxDeHZpO4nayLOG1/AeHNRakd5HMq63G X-Received: by 2002:a17:902:581:: with SMTP id f1-v6mr8675532plf.48.1530849462836; Thu, 05 Jul 2018 20:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530849462; cv=none; d=google.com; s=arc-20160816; b=cQvjJxGYsFAWcz9sNfqQ52veloCHczFE/QT8aeexZyAFU1K/21wyF6hXCbEzqemfmK /rGrjV9RYVD9KLoDWmeOtSBgWTV2AqJUk1Yx56FbKJWBURHxFpS7ILCLu3TBebp8ifDk nUOfL2oUXlHAptxdebQyU7rx5Im6S3W9eWN3t3e5jIPm+vAR+oFeFUGX7qdkeoZMaM8v jsvdhWQuh6m3ZM4Poy6UP2jWTtFy6H/pqe1gP2tg0pdqp+S8vg92gb8ked2a7MFbv5HD zOl8mSp4cg045CfzcON73CyhZCuF5xhnbE+qggxQ6hSDLIU8irSrcIZ61CJtRZy8qnfp xCXg== 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=BwRz8SkXkoINGnHo89FkceANUfssKlGQRU5dwQMEUkw=; b=plL4bErm0j/jSHzvKi9pUL3cBrRMZvpj5YQa4mbwNCbtbMvKAb5/uKP4W7y9orn+Y0 DqWqQp/XZ3ZZ/jhCeY4TWVkQtfiyRcYnodZhWMUMG/7rC6CQvBQpzs8tXVxBrXlmaCrB VDk26K/j8vgBi0AVHmeHSFnDbBZtxDOStS7Ge4iK+4AFXhg9/SnpZmaGUqzyjKP2FdvT Fy3tD/sDu1g9dt6yt2D786xJbdlj2JfXKdw8DMcJyU2j/aBK59iZ8riiuspui8SEpOvg Eg7PnBd2NFnHOtQ8Frb41WSSfqDGMiIrbFEEiMl28GWM9YGxF/drD6+Yhr1s/EJ6/u0d /N4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eS26KFLk; 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 h18-v6si6822212pgd.238.2018.07.05.20.57.23; Thu, 05 Jul 2018 20:57:42 -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=eS26KFLk; 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 S932563AbeGFD4d (ORCPT + 99 others); Thu, 5 Jul 2018 23:56:33 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:40510 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932513AbeGFD4a (ORCPT ); Thu, 5 Jul 2018 23:56:30 -0400 Received: by mail-pl0-f66.google.com with SMTP id t6-v6so2218909plo.7 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=L3YG/ASEKkrsLqH+YSuWtoHgp+Lp42VANIzuFrqzzlaZKsFrXvmDvXm6zOWkOWTrSd lJdQZUKAiQ9Lkml1HVMvE5wex+5mU0DTfR3jRQWfRfb2iv5GZ+hKfTw2QrauZCIW4O1J +SutnSFVH/flELNfbW0Oh9Gl9y1J6bYsTW9kYcI6RSQIrN7rrjH/TBlKlFZ/9PFKViqz Liq2tImGnAixT9dNuhqEjaYeXcivuGeNK6Vxmzut/sg7xv7CaETIzTHTzADAbtR7Qe7b UzQZ60cxF8n+FfDmuQKgAmob3Er6zzxyG3LgNGmVAyTNiAdEWvZTfi01zyH6H5CgKvEq euhg== X-Gm-Message-State: APt69E0ixVXM3KvYajFOdNv9eNaoKdf0vNPWneR6C3HtGPvOy0/UGbPx PdzAR2wYs5ZTiDXUBvpcxz/+3w== 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: 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(-) 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