Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1744355rwd; Sun, 21 May 2023 05:33:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dns6Z80cnFrV5z8pBrr+VvjCHZducBcoWcjlBW3ECysTZcfow8rjjcBzphEUVN2mtTqSU X-Received: by 2002:a17:90a:6641:b0:24d:dcbb:6307 with SMTP id f1-20020a17090a664100b0024ddcbb6307mr8859360pjm.6.1684672407583; Sun, 21 May 2023 05:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684672407; cv=none; d=google.com; s=arc-20160816; b=w7MfWGA7zO/uxaCg6c65CSvNC7jAm6KF6CKD1eVAP1COW8q+g+OEhQ8liYoayf6O3G 6IlqCNquGmV8+maGIp/LPwcSxhj+NFsYT7bgwwozDgvkkCPvatFnNAq6jTPU5nKRt58T sBFBeXmwo3k8kcF0Zj/ST8OYLR2hU59U2YtMU9TOVhQQG7z/Gww41JC+G+3dLX8O1HZB cBESALiIYVu+DNNbJ4NYDhKoOwygOS3ZiKsffCtwHaESgLUHd+T3EAzUruoqc4cEDfei L28mHou2MBCJRJAYxk0YGzt7tgCZqLYxC/Xq5yHTsUq2K0cRQr6+xH0UBJnspJSNRewB SrXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fPZZeue9eF+U+Wp0gEnmz48NaRoltBV0HK0IhcA46u0=; b=weZBFtNYEIPuOuqBWDQzWLwJX6J8L0bL6O2HxDcZJbWcdQwEYJqyJe3ZTbHyQWXX+O dTJjFypVw7dGY9LGBPlJoJLmjWQC2IhrnXQ+VLLC4MsV+/LtYksrvv/n4EiSx2ecP2QB B0M9/Gb3cJDNHvZzP8FJSpLJ7jN+WBt5ct7BrRC0IJzSEDIzbpvIcAPYfNWBtFkhc+jT xgQxm5fgCMmn5oCPse7BLDMa0dtbYEzlDexhqAZIv2AHYxxxQs4Noy7dz6DOeBnPtsEt /duQEzqqF9HIrrNTvarK8jFAS09Bk9CwyZiMtH8PorTVgDXjR3cxwHmi0ZKO5x34ikBk yJUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=obhYptZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a656a95000000b005303c3dedc2si3209648pgu.419.2023.05.21.05.33.15; Sun, 21 May 2023 05:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=obhYptZi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230190AbjEULtf (ORCPT + 99 others); Sun, 21 May 2023 07:49:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230455AbjEUK1S (ORCPT ); Sun, 21 May 2023 06:27:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BFBB10E3; Sun, 21 May 2023 03:23:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F788611F6; Sun, 21 May 2023 10:23:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7E49C4339B; Sun, 21 May 2023 10:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664609; bh=BLq9O0pAfUMUGI7sir1Wus9mHo0zlYVxEcjud2ZFuwA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=obhYptZiMtvVZVJlLF20TpBWHQwK+KLU/DD5Fd//1C8URO1K0xZnhXxazi/WNESxr XzO9yh2LPz2Cmnz+ywcbRJFpc5J3G4eeCCwTY8T7aIeEnN46DrcEKnuH88X70TGO2o hsBtcV8N2/hJNHagOsDdsDeW94yvF1CVcxthm4v2j0K7Pzb7CNP4ys1xWDLYgUOd4e 2eJFczzUX7ZUo4TfdqtHisXtsM89mAc5tQQqkHSUsmw1yMiD8EmPS3PcnhjK0sLp9+ V/zuL1oiw2RcYtIMKcaMFxUafhn8uI3iCk0XKP7CEjZQO65HxcCJAkU3N66gZDrt+5 OS9wB7NqLQr5g== From: Jisheng Zhang To: Eugeniy Paltsev , Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 03/11] dmaengine: dw-axi-dmac: remove unnecessary axi_dma_enable() calling Date: Sun, 21 May 2023 18:12:08 +0800 Message-Id: <20230521101216.4084-4-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230521101216.4084-1-jszhang@kernel.org> References: <20230521101216.4084-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dma is enabled, I.E runtime resumed during chan allocation, and is disable, I.E runtime suspended during chan free. So when starting xfer, we are sure the dma is enabled. Signed-off-by: Jisheng Zhang --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c index a19b651ddaad..4378134eea63 100644 --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c @@ -389,8 +389,6 @@ static void axi_chan_block_xfer_start(struct axi_dma_chan *chan, return; } - axi_dma_enable(chan->chip); - config.dst_multblk_type = DWAXIDMAC_MBLK_TYPE_LL; config.src_multblk_type = DWAXIDMAC_MBLK_TYPE_LL; config.tt_fc = DWAXIDMAC_TT_FC_MEM_TO_MEM_DMAC; -- 2.40.0