From patchwork Sun May 21 10:02:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13249391 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82D7EC7EE31 for ; Sun, 21 May 2023 11:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230217AbjEULsS (ORCPT ); Sun, 21 May 2023 07:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbjEUKZE (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 3568D10C4; Sun, 21 May 2023 03:14:08 -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 BE68861541; Sun, 21 May 2023 10:14:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 465CAC433A0; Sun, 21 May 2023 10:14:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664047; bh=705IbEQR9rBrNaTOK0WaKUUekkPcDSW7kXi/cfnV5VA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MUVndTHcpPU908yiU65cmte9E0nyV3gRWK9GLfARUXuD0H7FKZn12VR11W/FwfLCC SDxcuqtYH403Imj8zdQVqJI6Kp4DSqG87zDbE4k3euSrIp0z1GBqPXmW8B746uSEhu Pfje810jmbEiYAOcypN3Nt0WbHxmR7qr0BfLGVDGlZzEy//ACd5IKw5rilFobMxJ6V I27lH8Gc5Q8QLGn10R7+OqyR5jK5KZ7Q1GDk6smvWW/Obhr8WyAuG88GobdRVQHRlU tuc2xGCW0+no1IGxSCDnha0LARVY4RNXU3tjrSE2qL7c5dlRPUJFbR33p1giAI5IEx w0ucU+KcMY+pg== 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 1/5] dmaengine: dw-axi-dmac: Don't set chancnt Date: Sun, 21 May 2023 18:02:48 +0800 Message-Id: <20230521100252.3197-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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 6937cc0c0b65..796b6caf0bab 100644 --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c @@ -1466,7 +1466,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;