Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1629509rwe; Sat, 15 Apr 2023 03:07:58 -0700 (PDT) X-Google-Smtp-Source: AKy350ZUXgIPpIrq0egy1e4OPDLWug1NuuG1Z8k3PsPi5he/4y1Np1OQJyNGeMm7PBsafOjoMpZP X-Received: by 2002:a17:903:228b:b0:1a6:3737:750c with SMTP id b11-20020a170903228b00b001a63737750cmr6161911plh.21.1681553278148; Sat, 15 Apr 2023 03:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681553278; cv=none; d=google.com; s=arc-20160816; b=J1/hUWPV5xSnJ0HG5LBJK3h4pNBwxp+ZRwIBjoElIrNaeiDTW6MbyNrutXPEBkL8X1 qUBlmSr7CmorY2tSwl+onu+UV+3Yd/y6C3cn1sZjvic8cnRplcKYlGjOo5sotSUhckCi WC52U+e74KhETPU919lgvh+ESWgATzZCMB1BvUpSdAxwEEtxomxzn3x1L2MyjsR1nESx 2/+GhIX6TialmHMFJ65MuhkZXMs8ONEgsqfr2CTBKLkbL9KbPL6Eit9DNEd7rkN0pNK+ gfQ8gKZX+MupX/6IiZAMUmkyX9eb4wZHcMMgmPUC+7BfdrNj6MIjujLi5+OhSt0SVMyP RTBA== 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=pjamlwcXC4pTcynHqfPpoMTdtbtfbkvPB3lN+1tuHwk=; b=0cFUY9fgOT6YXBbaTCMEwEN9XryDRTmJI3VXUZam/Ipkt2ULw7tmg95wzRoN9w/ZAy QgqF800Z7gfn2cR9LopQAKCSFg/QlIUZuU5AskWbl3MY64AQFudRB5eHyxp9/xgaWUg/ huAgcrWC+W8xs9AkHKVlQHM68BkMAsowJlauZ2ntjO8a1CQZKf1S6LBggLEcixHI/cEx s0huWcNOoPJQlDw0xbyYAcAWeh4fistFUwnFHuw3hgKWifwdC0o1/SgtSqm0wDmii5eh O1vzZWrDlh/QcNPDTqk4pZUsncHgBoCYyBxoBZ+nLMpNTTs0skP5hvz84E7vrlb7cawq +/bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FeGcLJBv; 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 h14-20020a170902f54e00b001a1f6671a6dsi7553091plf.397.2023.04.15.03.07.47; Sat, 15 Apr 2023 03:07:58 -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=FeGcLJBv; 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 S229951AbjDOKHE (ORCPT + 99 others); Sat, 15 Apr 2023 06:07:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbjDOKG7 (ORCPT ); Sat, 15 Apr 2023 06:06:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5E1EA5F1; Sat, 15 Apr 2023 03:06:31 -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 A5AB061177; Sat, 15 Apr 2023 10:06:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 444C0C433A1; Sat, 15 Apr 2023 10:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681553190; bh=Z+1BObiXlJgUhyPJtWXSHre7idf+1fVLpCNeJRw84co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FeGcLJBv75tSgIpzlNfzHv3/MLU4/OGHjPh8RTfAsdeo8+0+ZSKtOhSLGmHmg/VYf ppyz46KmgHsl0wpKO/yzSynsis1Vmh9ImTWOviJtUHyH5GeppSxdB48uaitTi6R5b8 LSwKISZeFt3mxodjCv+DKBsgWlHmXTch46IhAqfYOnGWkF8+kGPWlAtXI4UBv4ePS+ ryaikh9nl4FK/vf9A6QcjXhNDPzFAbuBssonZfOBE7Y6aUtyPy2f7jreSlxmnRPF8v h98Boa6DdQr2pFnzZe4yqrZTJpMyn9sKtFlzpzOwD5TLKKHmArtK3j6uEOEIwGDt4z pMI6fKNT8u1Gg== 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 5/5] dmaengine: sprd: Don't set chancnt Date: Sat, 15 Apr 2023 17:55:17 +0800 Message-Id: <20230415095517.2763-6-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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Reviewed-by: Baolin Wang --- drivers/dma/sprd-dma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 474d3ba8ec9f..2b639adb48ba 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -1169,7 +1169,6 @@ static int sprd_dma_probe(struct platform_device *pdev) dma_cap_set(DMA_MEMCPY, sdev->dma_dev.cap_mask); sdev->total_chns = chn_count; - sdev->dma_dev.chancnt = chn_count; INIT_LIST_HEAD(&sdev->dma_dev.channels); INIT_LIST_HEAD(&sdev->dma_dev.global_node); sdev->dma_dev.dev = &pdev->dev; -- 2.39.2