Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1725937rwd; Sun, 21 May 2023 05:11:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WW67Y9vB6I2vgZO7EM8arJjLFwM/hO1+T5CWOR4wBHjcRnig65jpPC0wuhfaKjBnledLl X-Received: by 2002:a17:902:f7c2:b0:1ae:4c2d:94a2 with SMTP id h2-20020a170902f7c200b001ae4c2d94a2mr6214931plw.65.1684671069815; Sun, 21 May 2023 05:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684671069; cv=none; d=google.com; s=arc-20160816; b=asUoUzMsK75kt2RZHQDRPKyEZDRWP9E6LeAXLCtYg6Bo9k/Q1iEHJAhkCg1b7WV41p RnnHPCzSNOQrIngrABRG/MyKzpGo7AEQK0RpJNUYaC4Hw1aanbFqlv5nRxw8gzC3QLXI 3nMBEZupCWqHMxDk+h5jp+GVQLtSwFL1nJUnSszdKNBzuqWbkvhwEjGS5wyyS358TSFZ BsPuy4jn7UbrGQElqQHK/SEB4CDQgKm4bXcDS43Ek+tC3naPP2rN44dxuH9Qd9md+3Mx eIMAK89Rikt1oayhyNWu1eTyTc+1RXv36nFjw2gTkB3N8EnA8McGM4mceTZDebTF7zCm qtcw== 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=ic2u06JdUB+5G7Hwe9eThdkS7YAZCl3p/OFQ7oDz5H0=; b=GNups51JsVAdT4RuqNcxt4UBQTUBQAvWvol548VO+zo+avcdxi79F+ONWtGmxPJYUE aChU8saDcuDPwJ/2jzjvKfUl8TThIVgYw3E8f9Qx06rfLAsHhnh71O6F62KgcJX8bXlj +k3CL3hABGezhFWIssMSiBT2sLal3vKNU+kVvKKk9bOFqWhiYMsX5eTRraMKGAZgnIgC re8ULgKRVYNuhxlct/5ww6KJbEMTvoM3YxOJRLDxgzqBiZ3w1qfI/JQFm951X932HdWD pwujPvu7wZ9yY4K+8x9cYzIESQZTZsKw0yxbpIVpTOcTaHWnsYje2cxzbygMycoqW5FO KVvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gwdzc8fc; 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 jc18-20020a17090325d200b001a197aa18fesi2903985plb.121.2023.05.21.05.10.57; Sun, 21 May 2023 05:11:09 -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=Gwdzc8fc; 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 S231429AbjEULuG (ORCPT + 99 others); Sun, 21 May 2023 07:50:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbjEUKZZ (ORCPT ); Sun, 21 May 2023 06:25:25 -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 3A64810CB; Sun, 21 May 2023 03:14:18 -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 C104861551; Sun, 21 May 2023 10:14:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44CA9C4339E; Sun, 21 May 2023 10:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664057; bh=VWHHZGOph30FRSEIQKdN3FOhxU5GdBKx6unG4ho62NU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gwdzc8fcRcHU/eCL7hnccXdMDGUCH9rcOxlu+ymGWE7sMpzJF4GydPHgDhWlbKL+P kbx8r3vRZ6OyCzcsSmdoYbz0dl81U4JWUuu8KskJarknuBBLNACXgEybq234srfs+q uJ5yGpMK73hqWEzE81SnNQlEph0bM/a5OF+xXY2XI77RQCXYQt1m6nzi1dkfy8GvJ7 p9JDeOYb+DzeNaRVzWkuczeniwn5iDGXDgf5CdIoC7sqHPk3Sl/fRx1g1+Idymlpf/ Bfzs/3OH1rSUzRF2c7bsO/oHbMjX3gQ87JlfEv9dioAFnbYdCOx0LdEwm0ZWm6WT/i 5wyvEliqBS+og== 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 4/5] dmaengine: hidma: Don't set chancnt Date: Sun, 21 May 2023 18:02:51 +0800 Message-Id: <20230521100252.3197-5-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/qcom/hidma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 04d1c33afc12..344525c3a32f 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -214,7 +214,6 @@ static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig) spin_lock_init(&mchan->lock); list_add_tail(&mchan->chan.device_node, &ddev->channels); - dmadev->ddev.chancnt++; return 0; } -- 2.40.0