From patchwork Sat Apr 15 09:55:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 673648 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D91CEC7619A for ; Sat, 15 Apr 2023 10:06:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjDOKGv (ORCPT ); Sat, 15 Apr 2023 06:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjDOKGr (ORCPT ); Sat, 15 Apr 2023 06:06:47 -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 66D5FA5E7; Sat, 15 Apr 2023 03:06:28 -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 663A160B8D; Sat, 15 Apr 2023 10:06:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB230C433A0; Sat, 15 Apr 2023 10:06:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681553186; bh=VFo8FgxOsge+PUUwYU5GtQjYV19pyPbFfRwwhMQ8hcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mf7d8SGx7lp6TgaHpLQ0r7CcypJYZbtSBmAXTL3jgsRPSDHeVn5dk+nkqMOuvfX/D rpiwNkQ9as9hblItcJZWy6w9TRwxMaWShea8qiLPGvqPQ46PcOAA0pZ0yac892+Hp0 SJ/bTaxnjd3VOEb7m6Ou1KFuUOQrat5BUc7/tSJrw0L3boV1nzNUIyUfuWKXDYvtB4 o7qkPlQKkf/09FP/K5eCkKTqeuDXtAjGPOrSyZzAYItEcpWRGeKTZ+/VgF4mZVBKGc LqZ/NnT5JbVQBNCANjWbdDsHKRTXcPzsmJ1I2/gC943MXT3zK5sT7tmJ2jYY0RQf/Z 75cnKVSi5gKWw== 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 4/5] dmaengine: hidma: Don't set chancnt Date: Sat, 15 Apr 2023 17:55:16 +0800 Message-Id: <20230415095517.2763-5-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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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; }