Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1744012rwd; Sun, 21 May 2023 05:33:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iTXBExiiWOVHKxE42W7WiSJNxEKgmM1K4p2ZbfsmPvV1mAKqUeQL7zoSclTkRe9emn4yq X-Received: by 2002:a05:6a00:248a:b0:64d:5b4b:8429 with SMTP id c10-20020a056a00248a00b0064d5b4b8429mr3424305pfv.18.1684672384189; Sun, 21 May 2023 05:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684672384; cv=none; d=google.com; s=arc-20160816; b=qZayjhNVlNEgytvJCNSviNpHHjI37diSAflMM+eH6g/9Dplf74tKVnOEpJQU0enXwy F23ekfVeDGVWuhUOajWDW5gGjl030YvEJooBl1HLYdQM8b9fUojF5Tkx3DVUMEbkk4k9 N4MuTJH6QRis7QXQd1AWpBEtH6V9uGYu8Pr5v2xx/Nt+SfppwKKyTJdH1Q7bGBqH+uaF 7hVDOD6vrk7izHPpumvNk5hAA4D0r+MzYQ25JAM7D0dasjGJcBIVPv8zITtraTCVMbiX xf8SYcPk7So6BhNhiR8qUNQzCo7sY7S4yW3KHCA+wC2N7UphU3fA5ALKkcIH6fDEgo5x zCLA== 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=aL2/vFiyw4OBI02uLP0uaAKrvs/FTa/HeDQBAJIPWdY=; b=SmwYu5H3Y51l8ye7m5DEs0R2/OJggQ2wFya3CUKhdw0YmNk9iREHr9tTAXaPN++mpw M8kTbZWZrwN1WA+5XKNUmrV6hZ7iMTVShkzDeQf2jLTysjPf4IyEkSq/H2gYoHB913hw +RxnKOo4zvl4ofek3F00lsB/xvcJ4TL4XAChLiVOnMDv2BgDgWHH9kaU7tms0yQlU7f0 098Oz6h4GINBEqK8hAjSxFdxYSNLVRD59n1Zdu/+emvheXfhQ1sl4iJ7IAEyNkczD47H zRlkGwhHm0vOHeoxrDaxkebrW4WmljUrFBv92aojPmMJIYLGkI5fkfWZTmw0Zi1HJl6n TVoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uofbQcNg; 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 j70-20020a638049000000b0053440fe17b0si3189660pgd.623.2023.05.21.05.32.51; Sun, 21 May 2023 05:33:04 -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=uofbQcNg; 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 S231387AbjEULuB (ORCPT + 99 others); Sun, 21 May 2023 07:50:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231190AbjEUKZc (ORCPT ); Sun, 21 May 2023 06:25:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE5810CC; Sun, 21 May 2023 03:14:21 -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 14AAD60F0E; Sun, 21 May 2023 10:14:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9ACFDC433A4; Sun, 21 May 2023 10:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664060; bh=6pmh1p/2P56PknsAf9XgnrAcTCEe0jke0QzLpJtlW2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uofbQcNglIZ9SCjmGN+WPWumHtt/je6y8z/YzzUos9PthN9lQldIWEzLGiL6qhyLs zKpcmIWqjnBTatvWM58sQ48WBPDzYdChRwONNQYeDmKPnJFU39vvPPeX6w4BYDPXFD F2/AutCikIJdzYM2Cbm6RX5ZLnnDVGswhSpCK36slWRJUCiuhcwrIhcIkcNeLeWFOa 53jIlqITQiEkHsQx7z+F3gnQ2BYHCp3CNtUBBjkbETRf/uslkwFCP3mUr+zRB/Wj1q lBnvVuJEPBlSfOqE5LFmEv641lmVLX9HTKLDhywlJKtZuJrw1PMaM2B3gCmG3F1vbM gZs8mNOQ5Pj5g== 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 5/5] dmaengine: sprd: Don't set chancnt Date: Sun, 21 May 2023 18:02:52 +0800 Message-Id: <20230521100252.3197-6-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=-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,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 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.40.0