From patchwork Mon Mar 13 17:02:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13173005 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 0D2A0C6FD19 for ; Mon, 13 Mar 2023 17:20:30 +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: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:In-Reply-To:References: List-Owner; bh=4RjnR4ritvM1ngJTKes5kCwfb5S3yV9kPAD5eu01/nA=; b=mRoRj+fNjyOoQW L9pMxRpPAS2KJ0n4B1/d83dVMpHzV5TMq5JyMYYo0KMKgkXWhDJpnjTrpNJFWZNJ9cZACdDGCt15u HFxRH6Lz4q3Ll5JJwc48kuAaFzjsegX1ES1Pdx78s9e/Urkom0iG6KIbLglfvQNgQ+6LU/6U71qvp kBxjHdSR7DWn9oTCsxfmBlep3Li4pH1bKhIW2AORogKYsJ2zJXl9F/afr/wIlz9PuMUP0Zqz8voE4 LD8KNgPKD8hLXRKLkqlPWFU6ebbBEHxZmAa7iqgoY6Y/2q8Jv8sFe5NasdUGYwlQiJKeXt5sbzOf2 qkMJsLENunJlQnBkAO9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pblpS-0073C7-FN; Mon, 13 Mar 2023 17:19:22 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbljt-0070rA-5J for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 17:13:38 +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 dfw.source.kernel.org (Postfix) with ESMTPS id E29946140C; Mon, 13 Mar 2023 17:13:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 232E3C433D2; Mon, 13 Mar 2023 17:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678727615; bh=DLwIKl9KG2vxNMVwvDK4Kx4bbsNB0t/aPQo/qnUebps=; h=From:To:Cc:Subject:Date:From; b=rivOlj58ovpe8YxC5f1RrU/cHqDxgjafOzVZgArfLiYsBbx6hDkFqlbrIMY9zi4Xn n2XdlBpfV38mJzEKcYlRZ53DKJaFEqNoiZhlmIaplc1V1Oxpmha1dOTEV/vcb9BAfW P7d0e7kZs73AcRgKgD8cqS0Z+ExttwCTjiFmsM3EvSMzYwvsNsrb9l5SXc3jfKGc55 r4+0ZbfMSPTbQTEF44PNzBhHDoUN6j6DBPHXaJU8Px1DGrG5MtbP+2SRQ8huc1PEHW KBSr25ofqoPA9u4RhuNOeTHM+MCsjNdvLaI+abD1AXhsrU6TKl4kVHfwiL/GtyP8la 6ZVU3ePG3Jp3w== 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 0/5] dma: don't set chancnt Date: Tue, 14 Mar 2023 01:02:45 +0800 Message-Id: <20230313170250.815-1-jszhang@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230313_101337_272101_1D20A88E X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. 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 I'm patching dw-axi-dmac to add more features, but I found a small clean up point and some drivers in drivers/dma/ have the same issue, so this series comes. The dma framework will calculate the dma channels chancnt, setting it is wrong. NOTE: I leav drivers/dma/ioat/ as is, because its logic have a heavy dependency on chancnt usage, however it's still doable. Jisheng Zhang (5): dmaengine: dw-axi-dmac: Don't set chancnt dmaengine: axi-dmac: Don't set chancnt dmaengine: plx_dma: Don't set chancnt dmaengine: hidma: Don't set chancnt dmaengine: sprd: Don't set chancnt drivers/dma/dma-axi-dmac.c | 1 - drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 1 - drivers/dma/plx_dma.c | 1 - drivers/dma/qcom/hidma.c | 1 - drivers/dma/sprd-dma.c | 1 - 5 files changed, 5 deletions(-)