From patchwork Sat Apr 15 09:55:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13212416 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 77B71C77B71 for ; Sat, 15 Apr 2023 10:07:04 +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=i/MOM0nUHFiqtYkFRCmGz43PavZeKoW4qoIjK2mSWfk=; b=yWH7CsXsfIzqZg 61HSiJ/X9vsnqmx59wfkbf2rUw/25oBwZbmjzsAVPHQFHNQk5JH1nS/ZjNVJFgO66WtOu8u7fJB2F /0PGWW4O0YaY9bvqFDD2XlJyXGGiZ5yjlEViKGE0diJ2XCCeE8BmnT/2+0F9lypFrWkSjssx+qkB1 6keGVpH0flQXxvk6fpeHSPhZN1jfFnBm28ZCFAMZL2iKhEqzQ4leorjBiVLc+rPFwcvCV0Z6FOUG7 +JAx3+orA9b5DJsu3a0fKpcIkO8cUuLxMRT3hfunbHlU/IZQlyn2LvpFzF1SEvViS38wdDpk9uuC3 rnjtlnY1EkUn5GsHwgEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pncnX-00BnVA-2W; Sat, 15 Apr 2023 10:06:23 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pncnR-00BnSo-29 for linux-arm-kernel@lists.infradead.org; Sat, 15 Apr 2023 10:06:18 +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 E76F760BA2; Sat, 15 Apr 2023 10:06:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 753E4C433EF; Sat, 15 Apr 2023 10:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681553173; bh=5ZDvmp4AmKVtWmkiXBMt//3ziXaWBzX6cVS1LHEShbU=; h=From:To:Cc:Subject:Date:From; b=COd7ijUIiSXQJ28LUX+gvrw14X1y84xoZmDm/W1Gu5Ccm5OwP9xSQkU0071o8ojJy G1og91LxVzENlwUP+ej5TUtouS97rCMMfv6lESKxmj6LKn/JbZgdPg+eBuBOEv+RCd XlrqTOwATmlkdwqiIeAvf0UnhxvTbQBDRabqnzbZ5l20rFpltKykYS5wZs3Q2URIz9 af0XN8tjyHxSRSRRU7cJ5hbgYFW3EXjBH6NTqlmL21/7gdvTdIeh9NoxsNhL46eSd0 ew6ilq18KtDlMy5WSLLI7d9ONyL6ja3PH8Ll1EFC7j/g6P30xwJQWZJ4poLdaAItZb c3hjwvjE3GG2A== 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 v2 0/5] dma: don't set chancnt Date: Sat, 15 Apr 2023 17:55:12 +0800 Message-Id: <20230415095517.2763-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230415_030617_764860_2CF7324B X-CRM114-Status: UNSURE ( 9.02 ) 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 leave drivers/dma/ioat/ as is, because its logic have a heavy dependency on chancnt usage, however it's still doable. Since v1: - collet Acked-by tag - fix typo 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(-)