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: 10510575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C6CC601C0 for ; Fri, 6 Jul 2018 04:16:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 496032846D for ; Fri, 6 Jul 2018 04:16:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3ADD928477; Fri, 6 Jul 2018 04:16:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D123E2846D for ; Fri, 6 Jul 2018 04:16:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=MCORl1ZU+OkvxGaw9iN6yU7D9eRH6WBEg1njbjF45Yw=; b=aj9UNS1ediHfavUKjCC/MC2SjT tBXhEz0Yugt24Nf5bkDxwsidTRHp/6Wpl9ZFhAc9pJ0FA9p6pdnh5Djo2Hpz2f9Shuu5O1bOGilKA kvXgCOAHY0pLHEUUTzbI84hOlNgdxqhKZ6p1iYo22zflLDYLb0up+k4qSvQNbTpy5qLGutPmEq3BC BRHZIDgYs0wwM1aQOKYxhyc7vCFcfQrJfBet9K2ZVAtnqasBHTCLCqub8wb/E6RDgZBKL8FVisfJf Wip9DflFpx80frSn1plSPe3cKgJBdYmHECRVGtuC4UPHj9hU8jCPuuXxWM8CLf8j1nCgoceql+xG6 44tD0tVQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbIAO-0001a5-MJ; Fri, 06 Jul 2018 04:16:20 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbIAN-0001V3-JB for linux-arm-kernel@bombadil.infradead.org; Fri, 06 Jul 2018 04:16:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BwRz8SkXkoINGnHo89FkceANUfssKlGQRU5dwQMEUkw=; b=iLqjphuIpwiLguhoC3ktOks09 s0IFHbn+/Cl5ooX7sAVyDA9PoXe1U9WdUhKZcD7B1X5wFmDmdoLTojlb2BUXLan/U9H1mAQkfJisE FDDxsmF1AFFJuGgo7Z4Cz3hSxlBaN5rGG8Izb8s6C8MNXjFHeBjSJcQ8EYYVdN4y0YszzqTna7/ZH R3mLRHTVTfOewT8BIksb+xZ01kRwKageHkRaaqGYDqn16celcGf022sNXbeNwtjfmS8PVvro+vKDe GM4sE6E++zABtvqPdC6I5eVBl8SGpGzkLQcZoca1yJEdL/tXMVz70uGR3CUemd5UPnzGrP4qvKvS2 B/v8LpaeQ==; Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbHrO-0007zT-Mm for linux-arm-kernel@lists.infradead.org; Fri, 06 Jul 2018 03:56:45 +0000 Received: by mail-pl0-x243.google.com with SMTP id z9-v6so2212829plo.1 for ; Thu, 05 Jul 2018 20:56:31 -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=Oltfdmu8e8oFaOZK7elvRiwxvm5iqd9OppcDo0e829o0qraP8gyznrxTJXST5HL96g MtKzPXkMi6IQSyeBiNQVvJodCEwBcWm46ie7wuO8QvdYUYs3DMb8uXxjIHqQd13iKnXh AnXYMeRg8g08RMCOseoFCX/WupcCrLmxP+Be86Tphgj4xkZWIQ1koqGIYy4Y3d6qqnKn X7SAwyNOgGORewY6dgJTb4j3Xt7XdNfzT+Fh2KVNCpk4+dnDBNzyPcZ92c4T7hEkwZKe n+j8Qq0qqFvXQ4zw9ZhjYSwOUutJDn8+PDEpHKDsYLifMXoAYTbaKKJp1yR2aK3GdDE8 nPQQ== X-Gm-Message-State: APt69E3fIBiFw0aNLryaa24fNtS4MwoZkITc1+NCve4x6RCevHpvAaCE UBblYo9B8OkmairATUzQ0X+Evw== X-Google-Smtp-Source: AAOMgpdFBNraHEDUer3pRFJJW4sp7ksP4MBrQZ3jqubmstctw0/0uiVilcXr2mJhUcTKOOsJY3f51Q== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_045642_772161_B78E8CBE X-CRM114-Status: GOOD ( 13.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: xuezhiliang@hisilicon.com, devicetree@vger.kernel.org, xupeng7@huawei.com, sunliang10@huawei.com, Guodong Xu , suzhuangluan@hisilicon.com, linux-kernel@vger.kernel.org, fengbaopeng@hisilicon.com, liyu65@hisilicon.com, zhongkaihua@huawei.com, xuhongtao8@hisilicon.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }