From patchwork Mon Mar 13 17:02:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 662728 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 C64ABC6FD19 for ; Mon, 13 Mar 2023 17:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbjCMRYK (ORCPT ); Mon, 13 Mar 2023 13:24:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbjCMRXw (ORCPT ); Mon, 13 Mar 2023 13:23:52 -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 C3ED63ABE; Mon, 13 Mar 2023 10:22:57 -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 6E53261414; Mon, 13 Mar 2023 17:13:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5BCCC4339B; Mon, 13 Mar 2023 17:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678727629; bh=sheGLWSRVeZHY8o45gICU781ZznV4t/ae6HtpWxBx6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qf/UOe9YjBj6REsfrKde/wD39EkAWcypvQ3WAqT+0+FFqQ6Ffgx0TPeqPLDgy5NLe Vd0wn75BEOm3xW7xNHHJPZ/ZWX89ofjbTLlxFia0uvDGFDhl6DBdazT4iTCrwxJomQ Wew47qEoGgxKmOtPj4JGSHmIjz6GAMU5PG+E6LV4BqbZwCw2iR4Z0jtVL2XRCoVx37 je9F07HOoMrM8tI9Zvkc4sQOluGXL6M7MFWWb2JrMDbNxPEY8CmKwP0LbRv2JI8SGb jnN7zAE6TN0h1scWNriCZuy7jEz8ZB8ei+E4uDzu3K3gWhBE5NQ/Ra89Eg/gnpBjZn T1JWesBbzPsEQ== 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 4/5] dmaengine: hidma: Don't set chancnt Date: Tue, 14 Mar 2023 01:02:49 +0800 Message-Id: <20230313170250.815-5-jszhang@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313170250.815-1-jszhang@kernel.org> References: <20230313170250.815-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 outself 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; }