Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1628949rwe; Sat, 15 Apr 2023 03:07:18 -0700 (PDT) X-Google-Smtp-Source: AKy350aOOmE27Zpx71bW7gMABXIjwEG1Rgo6QEG9fmVPtai7Yftthq/2BfyZaI0RDBEq3SXmTPhT X-Received: by 2002:a17:90b:3810:b0:23d:4b01:b27 with SMTP id mq16-20020a17090b381000b0023d4b010b27mr8705095pjb.10.1681553238601; Sat, 15 Apr 2023 03:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681553238; cv=none; d=google.com; s=arc-20160816; b=zpWy2Q3ZY6Sd4Fa42//HZEPzEkf67MI5VS1zs+YPonuD07/eyLcB/MaAzzEmkBGCXQ jKFnajv66I7bupfmO5kYcrhuLCyNXZaadBVH6ibVEcTe3K0IALR9WZTCN73wKv0lQWiX UwQ1PssWNJ75SM91wxAy64P9H6I1xWhFcR/wYjBW9i2dIM7GwI58FvHAJ622rXj6y36J fak/u9KcIPk/VTG1evYZMY4kWaPhxR3V7x1YTZ0ImSKNS3VavBEI8WB57rEB4TkoyXol A+IR3LlNKdGyNS2yGnuhdryEwXOybGXkH98rbFAUiPLr4olvCvCRrr36W/op+iLCp9Zi sJkg== 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=fcW687LHi+DToUES6i2SQdbQGeU0GgIIzpPORNuUc98=; b=y3dx1SxdWSq4C7+B1Avvtx+36fNwMwHdhnaRwQxorIroIUj6X2T5VyL1EA/2AwpQMi v61Vdj8i7mDWgRh3Joh7W9WmsrTYuB9I3RYyOFZlFZ6I+O+Bry12A6iHCbuSDmVyTSMT 3CSXFccN8Badbpsg90vEYCBQxUdHfjxVc1wIc3RQCAwBx0mB64AgECWR25+VeQ8ICdQj jRDTwqsAzQNHOlyIYZViWxupWoWlYgDJYEqSGifXReBvAx81BPRv+ddKfh8C4az9RwxI CGSkmXLlctP/IjsQy2MO9VKoTgAcc0cSoeiQaQy/KxntLFltntELEcCfPqvh6lB0o5fn /YoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bIJ8wwGl; 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 mg6-20020a17090b370600b00246b98ed43asi6375626pjb.156.2023.04.15.03.07.07; Sat, 15 Apr 2023 03:07:18 -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=bIJ8wwGl; 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 S230128AbjDOKGY (ORCPT + 99 others); Sat, 15 Apr 2023 06:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjDOKGT (ORCPT ); Sat, 15 Apr 2023 06:06:19 -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 AF0C8902E; Sat, 15 Apr 2023 03:06:17 -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 2EA7161173; Sat, 15 Apr 2023 10:06:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB405C4339B; Sat, 15 Apr 2023 10:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681553176; bh=W7rOi6WjpD3uscFWmYE+SDo4q4MTdBEvs6oaRgrvjKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bIJ8wwGlfYP1mRVObuTcpFYQWY8ID3xUbYwVRlP/D+LFiN9Mi89wZN+Lmf1Spa0cj tWZu3aJ1594zgqOyZiEvgF5KjVsmpyZL/9xIKPlTUH74Y/XHgfxLfuANNTBuFkJ3Cr EmxRcBNfnVFEuQPZgaM8oh3gFvQoaYeSZgRCcZji8c+zfKxYoeSAzugUDujNct+laP WH4PdqtdV8zLIZJUuNEglG39d1KKeWEXgQ2K49BI3lhmcRU8FYdF1WY4ELogzAeMoc WuqjPU4vHnAj/NDe3nLQmi0LL8yDSR3cLIlmXiwi4puaVBrAmtqcSqvp+VHjyDuS5Z 7tktgBBGEsatQ== 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 1/5] dmaengine: dw-axi-dmac: Don't set chancnt Date: Sat, 15 Apr 2023 17:55:13 +0800 Message-Id: <20230415095517.2763-2-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 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 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 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; -- 2.39.2