From patchwork Mon Mar 13 17:02:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13173006 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 5465EC61DA4 for ; Mon, 13 Mar 2023 17:21:36 +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=BY93nFyV6e6peNnhzx4YAIkAOo3H0tw5vzhZVHLDa3k=; b=d2sD7C1SX5uedo 8lGdhWWmX6kIpeVJU6M30cIBYv/cYfhI4wxbxlVvso+YE+aYtxOhxizDVjMoa6jvLazwswGmBhbqR aeMCFTe8e8o7B3ZZpmxrfce75kZvfTBtx6seUKRgf4Lhr4cR0NDalMmmHLLLQqcX+WJqtcc4l4csE lWGiNUPkOTAwXTm/y2LVa+L5nQ6xBZTcVsTlPdgscMHZEY/bSevtMTM/KRtMxqraTsWFcmlxabWXg vGKBlV6Tz+eeuYp72THtCva+2cNrxovfNRA73t1dO6yjlw4W2g9WnwAawPBvwXOVoaeNhh9Xi8J2o hbeLiMO5FCsaMY00f4jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pblqR-0073Xv-OZ; Mon, 13 Mar 2023 17:20:25 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbljv-0070t2-UF for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 17:13:41 +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 786C861382; Mon, 13 Mar 2023 17:13:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3434C433EF; Mon, 13 Mar 2023 17:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678727618; bh=VQQHMfQI08CHIqPPov+coidO2k506v2YpxzAR1Asbws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B5XUSLN6KCOalBeoQw2MdjMOVgKbJeN2gZW04b1yMzFXknpV6v3wo1qM6LeWEfupG XBSJS3/Y1RzE8GYJyimlbLmEOQRcT0G8xtGywFU1ybi7pPVp5vypPiiKMu0YaIwo75 afPLg7DdMVXPmHbGczTNtX9fcBVCJT6k9lFFevYhqMUkmCCU0TMeSiQZAgBhd4hU+g 0cA++XBHRqtQqvlvQIcYJX6kB7EOG2cfASrcF/Sa1Z2B+r43fX8pxpZTrXvzYxkFCX TcrvLcbMc76zGn/b+CakmtgaKqWS5Hk2PHS+SctCckSsp4LPkhf45oPL8jF3ZDkqrH YfDGJlHmnv5AQ== 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 1/5] dmaengine: dw-axi-dmac: Don't set chancnt Date: Tue, 14 Mar 2023 01:02:46 +0800 Message-Id: <20230313170250.815-2-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_101340_100652_0CD6B6C3 X-CRM114-Status: GOOD ( 10.43 ) 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 outself 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;