From patchwork Mon Mar 13 17:02:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13173007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B663C6FD19 for ; Mon, 13 Mar 2023 17:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LUb/fem6UGl+p0oljJ8+AVBGD1lUCurhPeIRmhXsZJc=; b=lGnQbsBIyyQCIr CwyTcsWlalm1B9oKfmFYRAlVlqJ/SEYJzuLXpjBJU/jADkvtizA4duaMHUThF8oqCR1WoH/O/ddsq jXh9HDe9LVM9XiekLj00z0wPx8aBriN4JCyLrpm8aFedK8+O6tX3IVVOohJYIGv6D0BymW9gDEIsf 6UseRHPfHS1Evyxkj2WR/xeJFN5uXoISOkZh7/oyMVmXqYMFygWXebjDxvEg0w8Wczjp3wC4g/AHJ zUoiMyoc/Zg4UIVAk1deZmC+epZNp9tSJWcKsgBoNHGTOS1yVoZxhs/LSfA82S9u7keJ8q5a+gSUu 9pnj6MlrGnZVTWTgwVDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pblr6-0073mO-Ot; Mon, 13 Mar 2023 17:21:05 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pblk1-0070v0-By for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 17:13:46 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id EC2F9B810D8; Mon, 13 Mar 2023 17:13:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D613C433A1; Mon, 13 Mar 2023 17:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678727622; bh=+THSfPIwklUUC80eud55EQMNToM9c5KqOlS32WoC2XM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qTOal6KEg0SZVhRbX2h2CEBDzRGBr32VzO+RBaVn1hEGQzAM4zdovWfmhZyejwSHN AJ+VvrD7VN5fr/rrtHU1E+KDt8Jcow0fge06jycv1hJTscQcJyr7INs2UmOBhdmwTb 414DupFCmMvpm3lAhGnbmEqM2W/bL1MQnqHt1J8mRjpBije3IMDBN0OZOmBr19iTg/ HnkT9mnarEL3YWzew22rp48cAsdYlGSzuUxZnf5Xd67fL5bBrbMfgWmsFIeEt8GGXe kuhVYiFRaUf4Ir8CB8H1S+SDGvR+kZbVcQNjlmJ9VJLoYp+dt/TxLpe120yB39YdPx WJBIaHv3hxzzg== From: Jisheng Zhang To: Lars-Peter Clausen , Vinod Koul , Eugeniy Paltsev , Logan Gunthorpe , Sinan Kaya , Andy Gross , Bjorn Andersson , Konrad Dybcio , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/5] dmaengine: axi-dmac: Don't set chancnt Date: Tue, 14 Mar 2023 01:02:47 +0800 Message-Id: <20230313170250.815-3-jszhang@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313170250.815-1-jszhang@kernel.org> References: <20230313170250.815-1-jszhang@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230313_101345_612056_A7F898E3 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The dma framework will calculate the dma channels chancnt, setting it outself is wrong. Signed-off-by: Jisheng Zhang Acked-by: Lars-Peter Clausen --- drivers/dma/dma-axi-dmac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index a812b9b00e6b..fc7cdad37161 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -963,7 +963,6 @@ static int axi_dmac_probe(struct platform_device *pdev) dma_dev->device_terminate_all = axi_dmac_terminate_all; dma_dev->device_synchronize = axi_dmac_synchronize; dma_dev->dev = &pdev->dev; - dma_dev->chancnt = 1; dma_dev->src_addr_widths = BIT(dmac->chan.src_width); dma_dev->dst_addr_widths = BIT(dmac->chan.dest_width); dma_dev->directions = BIT(dmac->chan.direction);