From patchwork Sat Apr 15 09:55:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13212419 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 ABCC0C77B76 for ; Sat, 15 Apr 2023 10:07:15 +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=SVOiaOxJdgmDDzkebkUnusbYyYpIq39HCZ/zadBK8jU=; b=OthD1Kx5C4dMzx tlPyd6Up4Llwxha8qBofsoUePtgQoDqGmpI4+L3a12EPb+lqMuj/w+IpijIVx1dUr2J+pwS+3Rrc1 gKftGFnnMUiu9GqtSKo+2S30AOer7Sq4hrjCEVh+iIQqwTff3OQO8W/i66p+OP5O9tGbsFWmpK/dn IcIb82h+C2h7AgVCLULQK0/hUHkcgYMC+ZQDo4znQRF5xJVwDC3k7OITdKB8gvU+4eYPOm0bLlMl/ FG9H+zr+Iy4bMC7kZr6h9EAHMhQnKDKD/FygiGaWKecyZ0pi/4tFV+UrGFHaLGx2tdJPx6iukO7b7 5c3pZqRPHFcmhfIVGpYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pncnY-00BnVh-2Y; Sat, 15 Apr 2023 10:06:24 +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 1pncnS-00BnTT-0K for linux-arm-kernel@lists.infradead.org; Sat, 15 Apr 2023 10:06:19 +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 A8B9E61766; Sat, 15 Apr 2023 10:06:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB405C4339B; Sat, 15 Apr 2023 10:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681553176; bh=W7rOi6WjpD3uscFWmYE+SDo4q4MTdBEvs6oaRgrvjKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bIJ8wwGlfYP1mRVObuTcpFYQWY8ID3xUbYwVRlP/D+LFiN9Mi89wZN+Lmf1Spa0cj tWZu3aJ1594zgqOyZiEvgF5KjVsmpyZL/9xIKPlTUH74Y/XHgfxLfuANNTBuFkJ3Cr EmxRcBNfnVFEuQPZgaM8oh3gFvQoaYeSZgRCcZji8c+zfKxYoeSAzugUDujNct+laP WH4PdqtdV8zLIZJUuNEglG39d1KKeWEXgQ2K49BI3lhmcRU8FYdF1WY4ELogzAeMoc WuqjPU4vHnAj/NDe3nLQmi0LL8yDSR3cLIlmXiwi4puaVBrAmtqcSqvp+VHjyDuS5Z 7tktgBBGEsatQ== 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 1/5] dmaengine: dw-axi-dmac: Don't set chancnt Date: Sat, 15 Apr 2023 17:55:13 +0800 Message-Id: <20230415095517.2763-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230415095517.2763-1-jszhang@kernel.org> References: <20230415095517.2763-1-jszhang@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230415_030618_177575_692B204A X-CRM114-Status: GOOD ( 10.42 ) 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 ourself is wrong. Signed-off-by: Jisheng Zhang --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c index 4169e1d7d5ca..7f3a60e28e38 100644 --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c @@ -1445,7 +1445,6 @@ static int dw_probe(struct platform_device *pdev) dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask); /* DMA capabilities */ - dw->dma.chancnt = hdata->nr_channels; dw->dma.max_burst = hdata->axi_rw_burst_len; dw->dma.src_addr_widths = AXI_DMA_BUSWIDTHS; dw->dma.dst_addr_widths = AXI_DMA_BUSWIDTHS;