Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1746548rwd; Sun, 21 May 2023 05:36:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6DKpE543LonCVwiMnWtviNMwER/UQzjMeld+bd7RhlM/HyNx+Tp+QLDJ+KhFs7gCwCwktf X-Received: by 2002:a05:6a20:938e:b0:10b:235c:d8c3 with SMTP id x14-20020a056a20938e00b0010b235cd8c3mr2983359pzh.36.1684672570507; Sun, 21 May 2023 05:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684672570; cv=none; d=google.com; s=arc-20160816; b=he61oW/cKDXwHzEXL20jKT+Bybit4q0IXHT8hh9zYIg16pMBPk273i6moH5JfnTnX+ 7ZU3HCAwK9vIG8SweDTjYk7gAdpYheEYOAObwJGWr85yXX9uHkM65BaY/iIxK6hyMBqn 3/Hh4VX2evd3HE5Yuzj4LS1iTa1/kRNu3kbOrP7Y59z+uovfI8P2Qbj8y8Z0m3RoM5bz NinTtWZaujPB1Vo7432Yp2o4exLoWvS+kt6i5HliDRI3nglnBT6UxmA6SA/fniQMp288 ET8X7q0qCbXar95v0qcJmEHFD8chNcNQwNug72cB4aq9tDaiwKHSRlxR5UuU5rgwuQgX 9XUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jdHIUtvkOvW8iyNdi+lfHKdJuPlyEDoF8/vj9zL4u7U=; b=OYV0dOc/C3s8r8mHTJbssU751tGwVyp9IUttJDILNfHgBvc/z3sgjqv/YhYInTRreJ VT3gbOq8r2mEgERlqkwH9HRPidNGls1oJviCKKkN8rBPkZuEn9anlvvHg/srgxF0Nezl nRFAU5EdjQAvy+54lj5SKpHPOyxaKc0RjeI5Sd5B0SCGTICRwzuMiDMbVyCLaXK3hqVD qqKXMUEeTxV67wgev7LdQgrgY6J6oKQtVt/0a4saoAI2tvKaLes1XTrYKT82g7mmqpgR 2x/RFOGMkStXa+EJaIS+4/Th4neKYnoEX8doG5+R6eKi0vtT3BjL2g1KV/sem5satz2v jqaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MUVndTHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a632c02000000b005288509b88asi3017460pgs.681.2023.05.21.05.35.58; Sun, 21 May 2023 05:36:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MUVndTHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230510AbjEULuJ (ORCPT + 99 others); Sun, 21 May 2023 07:50:09 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; -- 2.40.0