From patchwork Sun May 21 10: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: 13249350 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 EA679C7EE23 for ; Sun, 21 May 2023 10:14:33 +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=ncfB/7XhrorQqlnAPoMk6AA3E987egXBBjd9wUoCjes=; b=JDJ97MxYOAxL34 VLQLQT7z4CCRITWf9Q7hGxi5aaHkoRvH12+D1vErVHBH6XmMzAmR358EWR16KGJx/so9i1XriZn6y OmSeXKuG9xozifowyDJCnciI6wiCz0YJ1C6kLmI9YQOkLfxsa4cg0PCoMCpOed5awfkGXKrmTPe79 L3d30ZHifMyc+ToLVfMYzqZpE/S3DULkYjuLHPEJQsqOpB+jFvGTWKU97HgICiIHIOBP7AgCwNm3d fHtIcNJFgAK3Vu6Q3nOX2jf2MUInAzC/i1Jyv41T+iIsOnV9L5ZP7HzL8f9Z4Mymq5RWwjiqICy7Q 0Sjaz4HBBQDo+61HnDHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q0g4l-003Z0m-26; Sun, 21 May 2023 10:14:07 +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 1q0g4j-003Z0V-0F for linux-arm-kernel@lists.infradead.org; Sun, 21 May 2023 10:14:06 +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 6790C60F0E; Sun, 21 May 2023 10:14:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6455C433D2; Sun, 21 May 2023 10:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664043; bh=Vu1TAPPciiNN/+NNVmvm2e6pyVPkwqUzX+KPyIlmhCM=; h=From:To:Cc:Subject:Date:From; b=ZajnV1LcRAkwfLq/SJRiJS+qsd4lpR2KLL8lVNF7DVVheUsJOlHe7P2ShRWtM0Tkd 69DII5MQ03k9o/X8SjWJD7kfLHjYKxcfuYPcVl56KiPn64ch/vX5Cs2xud/M3ExphV sSyuyMf7SQxEidkxPniJVpNz8d3w7Mi0gBzORbN9WIkfW+F6LznOr/6WaoBMXCmPyX RqlLJHqzojkHWOnad98ZUuIwQzcOwIH8C7fPRHurcfWl83vJ1sORj07t1O94LRJl7b H/goTc0FbDbgnMGh5zgjrk0qNgbIgB6iB03SXh+WkBPUoC3kuZyymqZHNA8SMP3tCp 7dvGSDzJFa1Xg== 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 0/5] dma: don't set chancnt Date: Sun, 21 May 2023 18:02:47 +0800 Message-Id: <20230521100252.3197-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-20230521_031405_178843_20ECFC90 X-CRM114-Status: UNSURE ( 9.54 ) 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 v2: - rebase on latest rc1 - collet Acked-by tag 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(-)