Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1708698rwd; Sun, 21 May 2023 04:51:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56eY2ag4fcex+TN6A+4a4oDsfxAVMnv4SKfP70+mONgp5IZTBXfREbz3B72djy+Jkb7RJY X-Received: by 2002:a17:90a:64c4:b0:253:749d:205 with SMTP id i4-20020a17090a64c400b00253749d0205mr6339878pjm.35.1684669917709; Sun, 21 May 2023 04:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684669917; cv=none; d=google.com; s=arc-20160816; b=zwazMkEYvoFjU+u5SLlhxdWgclCYGSt5m7TvXg/VH+9+kQ+prPtOalh94uY2wFZXx1 fTWZp/vii4KVWBJ3Eu4qit/8w9WrMySBViJM4FyBky8w/mJSVJ8aZ676dbI73o8y3juF bLwcE7j1q84Dcj3Dvq/U5zBXpDUqwvqYsS9aFnt02MHpwTb97Y97BImNr99ffbRCpcdK wTQ6dAXC2rwMwRUb1VMxeAvvCLNUazuIuKuge8GUJHp0bNvKlHAURHd9nHpSi+qkKqdo Q8fHPXRysuQVLaXKxWoeFnBrANtEabTMh4T8q/JFeLKytlvmXAjrPA08apWufAl9jY7u 9mMg== 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=Orm4odbKmE067OU0RJBYL0641Btc2Mr9CbT8MWV4Zpk=; b=r7OEu2i6an3DcerCE8hqTXv5a0Qy6HwDKT4IuKu0algrDTzjelhTfLpLSlrK0x69lh uhOobae08CqTsSKv/UuDonhts+xNPboJOtuNclLvJpcRLF/UxtI1Mqur+HefjO6YbMy/ wb9wV470Ni7lChMSHhH7yC7D3X8hDWWgc9xeVcyrEP9B4fC5swo7ezzZ+hDGULGezySQ TeK6GbjxneI4o1YuH3kPotUr7qA37ZJ7rUJ6cv9O6Sd/kQlHm6FaFFbnoZzZjJO+IBtr xTNf4+JKt9B+pjpFXzhizCbpVCcMy1DtZIwlJwk5uRd3P9kTk66CnH7S/oAuIYw0teZg tqIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jalWQArA; 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 bs124-20020a632882000000b005348cc20de1si1365842pgb.22.2023.05.21.04.51.42; Sun, 21 May 2023 04:51:57 -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=jalWQArA; 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 S231582AbjEULuM (ORCPT + 99 others); Sun, 21 May 2023 07:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231173AbjEUKZE (ORCPT ); Sun, 21 May 2023 06:25:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85FB710C6; Sun, 21 May 2023 03:14:11 -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 1AC8761528; Sun, 21 May 2023 10:14:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 978D8C433A1; Sun, 21 May 2023 10:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664050; bh=iKBSLxOITCXkuIZreLUcOGXCAwPyJ2AdsBgElqBT+P8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jalWQArAy9uK0OcA78NzbJf6BcDyjcl8QCFrKtS5uzQErfVDibIxJWp9+YjqwKE8G fczdosw3VjLQ32PcSSoRQ3xkDwdVNj8kYrMA60jQVVjZnjYWlRFbpWQbMi/tHEAQlO Q77wjRHo7sHMWk5H+zdlSqyOn7FVM8mY+4npxP6SlciOM997/MPKUHNfnx/81eil1P mGea0V77U8ZRFXgTDXW0+39hfIGHJPxwBZ/tObb0eOZDc5s0HQrGpXqeDvS2yDarcF E8mRyccMsmLFzy/2+ZTRE2ei4DLbBQyEYGhwVEU65M1H+kxdGnlp8dKTXydESO8pSs mGt26HR+FF3rQ== 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 v3 2/5] dmaengine: axi-dmac: Don't set chancnt Date: Sun, 21 May 2023 18:02:49 +0800 Message-Id: <20230521100252.3197-3-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230521100252.3197-1-jszhang@kernel.org> References: <20230521100252.3197-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 framework will calculate the dma channels chancnt, setting it ourself 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); -- 2.40.0