From patchwork Sat Apr 15 09:55:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13212420 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 55A85C7619A for ; Sat, 15 Apr 2023 10:07:18 +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=aRwZcWeaEZ7phMPpBnSn8F9UWLfRppcNxfEfLxHZk4Q=; b=AOuA+zbuWyz5qq SRtl65nnfSnMl2ZriqlNsyP/mdZocnkM2HVEckbtKdXWSTF2ko1awbLRaHA/efF9d3C4TlKEHUl/I wvPex3q3v7X/G1v2Yho8XnBKmUT5uDU1fcgbcDSeaQsPgqyfFS7wdQC7gK3mhmWX8MNoWVsbJcUts XuEADvmqKtRZDvOe5FPKPDuYS6MeduyywmSYCWcpB3nOxlfdlCqT33tKypFfD0bpoOvh5IWl5vIgL nxjHaZLmY0V62XEVoh5CUJ805PnG3402mwkWF5o02EuQMeVUEX1xCXfNH+47p8ea/3e9UOHMXu803 dBScdJbbSFS8lFtMYvaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pncng-00BnZI-1p; Sat, 15 Apr 2023 10:06:32 +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 1pncnY-00BnVO-1f for linux-arm-kernel@lists.infradead.org; Sat, 15 Apr 2023 10:06:25 +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 20DE060BA1; Sat, 15 Apr 2023 10:06:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A277DC43444; Sat, 15 Apr 2023 10:06:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681553183; bh=j0aBz66SH19AvtQqR7Wm6Ds/FEdfxHpyVN3OSq/97ic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wnb6lo7ozMMC+0h+H3aHtR73fgbRh+c1fxAOUu/duhI+c/RZPDt+thU1gS8iYN437 4xwKW5j54WgNmgpB46qD7PvQQ77aFl+X4XqFS5hBVXjfWB3hl8ElMn+2wWUVVA7bhW X2g6QLLhsl5w+8BRrkdt/0x7p7W3eVUUh6c06h3IE2Piuiy0xsVZ1+lTXvzIcns2q+ fel9D5AIU6F1SbXSnGMX3evpMmfZ2jWuiY4TTbKYd8MqqRMFIqLAQ63LhHEoLmdbKL RPbBsV0Rqu4+TndBK4FcxdwmrmNsAxdxim9AHje8usVbPN+f4VJ9nVo1Mzn1CG33K8 +8+BAvAGiaq1Q== 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 3/5] dmaengine: plx_dma: Don't set chancnt Date: Sat, 15 Apr 2023 17:55:15 +0800 Message-Id: <20230415095517.2763-4-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_030624_591126_AEB7682C X-CRM114-Status: GOOD ( 10.10 ) 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 Acked-by: Logan Gunthorpe --- drivers/dma/plx_dma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c index 12725fa1655f..34b6416c3287 100644 --- a/drivers/dma/plx_dma.c +++ b/drivers/dma/plx_dma.c @@ -517,7 +517,6 @@ static int plx_dma_create(struct pci_dev *pdev) plxdev->bar = pcim_iomap_table(pdev)[0]; dma = &plxdev->dma_dev; - dma->chancnt = 1; INIT_LIST_HEAD(&dma->channels); dma_cap_set(DMA_MEMCPY, dma->cap_mask); dma->copy_align = DMAENGINE_ALIGN_1_BYTE;