Message ID | 20230313170250.815-4-jszhang@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 2E3C6C6FD19 for <linux-arm-kernel@archiver.kernel.org>; Mon, 13 Mar 2023 17:22:59 +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=oS/pdVjkGyhqCiJN2CKUalk1BjwQ1XRH64nTYqC4aQE=; b=wDwilo8ITQtoix wiBR101a9j9hltPYfWeKesaZKkXv8JcpnRdWTMZ5bi/F3e5RtIj+p6BvuWPx1tMU3a4IJYCatgXWk tiw/5yGPEvGmQriDHsOyLW3YOM/kl44EHB2+Hv+kz3ToiayCV9MhEt92t4K48APFwOQux9rlRuntk msXsbJlSAZsnHfq61ssiGgW9Cy9muqiPCBb37r0R8Fs8eWnuwJ4XnydTCFrl97/ld3lYqh7OXxMFR 0VqPVMNiUebzjH9W1o+f08Lu5GApst1aocOldPHmiFxWVTojRjkFspjChSZKhpVTTlcQu0H/g2lrc otac5MqfLYTWqljIfLeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pblrv-00748o-U6; Mon, 13 Mar 2023 17:21:56 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pblk5-0070wD-4Y for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 17:13:50 +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 ams.source.kernel.org (Postfix) with ESMTPS id 704C7B811B1; Mon, 13 Mar 2023 17:13:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01845C433A4; Mon, 13 Mar 2023 17:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678727626; bh=MmQlG4bKX5zRhls8Ppg0KYbzYJ0yCTbRflxLRO/KTAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MaxyiQm3zr++CxlIZQvcW00rgAI+9VUp45EuH39mSHwSJYNEN3erATeQQBmRAbDu4 cVAF7BjY731YkBIC0veCIoGxOy9TjxXtXygU7Dtk1Npl5Ayu4xhUdiBEKdLfSqk3+2 /E6GI7kiVSyhBBujStix0sb6kdj4ecpiaU0exXy4zUVucXDiEkeLdWhTIrM2khMzH8 tBP5VPdrF1QADqGTs7xKRL+lHSi3t0mdSNDibe6Uhs1lXcCeFYczD95hqoZExkOYNQ r/Tp1Ch88FT7gUE24U8Ajn7vz22H4nQj2DP1/9hZHty6kAixtFz8/BcoGKZ85yRAdW oKxHJ7Gc7jy2Q== From: Jisheng Zhang <jszhang@kernel.org> To: Lars-Peter Clausen <lars@metafoo.de>, Vinod Koul <vkoul@kernel.org>, Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>, Logan Gunthorpe <logang@deltatee.com>, Sinan Kaya <okaya@kernel.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Orson Zhai <orsonzhai@gmail.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Chunyan Zhang <zhang.lyra@gmail.com> Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 3/5] dmaengine: plx_dma: Don't set chancnt Date: Tue, 14 Mar 2023 01:02:48 +0800 Message-Id: <20230313170250.815-4-jszhang@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313170250.815-1-jszhang@kernel.org> References: <20230313170250.815-1-jszhang@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230313_101349_415690_61CF0140 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series | dma: don't set chancnt | expand |
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;
The dma framework will calculate the dma channels chancnt, setting it outself is wrong. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> --- drivers/dma/plx_dma.c | 1 - 1 file changed, 1 deletion(-)