Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1629990rwe; Sat, 15 Apr 2023 03:08:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZbIq/1y16XT3sLxu7dP0H9kTw5qVesuuubsvNAc3RSpR6V1tQVXHxoMLGwD7G3s71017u/ X-Received: by 2002:a05:6a20:4c96:b0:eb:765d:e0cd with SMTP id fq22-20020a056a204c9600b000eb765de0cdmr6902107pzb.48.1681553309373; Sat, 15 Apr 2023 03:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681553309; cv=none; d=google.com; s=arc-20160816; b=fnxeBgH1G0vzwEoOvIcT76EI5j3EknF5WEz2fYN+PYxXhtRkLw0krncCT6YSST+60X 61eM5pPu3Nb1TkfbFTTE5NNW3DJLpSSBWryExNHueUZC0E4Tqqsfq47w52//Pv4BDWB1 rz7HLgpe5Cm/w1OQFd9tSHWe5HCbXV9PGWvShNGJTRKQ4InI3vqtH7JwOYi2SAK6rXaO QbSKVVMY/5l5BoXM1+jVBNzRWA6n6ed3WZ/8DWlQP+qxrCqCZPWd36GNdQKS2VJSi7Yj aU6hXvJxGRJlMEMQtbXEaGChk3Tf5kMSXQgF7B55gPn1nehoSiHAuAugSAFD8EVKzu3a 6jqQ== 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=KoEKY+8wossiROywqfnzi/Qqwnm34S/fkiPPFoPUNiQ=; b=EVwhH+reGlY8Zsy2cJDFMMqAKghCa0u9Q+xIxVY4dZhxkGfwEZ5zUuzK/NvGYd8j1X CmdaOLBfdcB/UMwlx6ReXUQ32n68a4XoKa+nHMmLQWdIYIMmsno9TrcOWSnOTa2osJMA y55BW5afAx6Ux5wetxqRkSKgoJstIRnu6wJPmteCfzwH6oIlYnM3d6EJbggSu94C3rBT oihK/GkpttGOl51nbAP9ZxPLutOBdAHag3J+koAMWVqdwkYpgJYMZRrwW8dDUvlrec6R BSSA8JeQ8kBZWMb6H1Sbsibj056iU+J5N9yyJxi73rnhN2aX36Qn2/n7vOdavjPqb5Qt ufMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mf7d8SGx; 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 h192-20020a636cc9000000b0051b810a9d5fsi2585215pgc.384.2023.04.15.03.08.18; Sat, 15 Apr 2023 03:08:29 -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=mf7d8SGx; 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 S229623AbjDOKGw (ORCPT + 99 others); Sat, 15 Apr 2023 06:06:52 -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 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/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.39.2