Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2707360rwj; Mon, 19 Dec 2022 07:57:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ViBi/+tl92CPoQTPJB60BzGIY3iN88aj4rY/b9Jl0E0fIzScQJTtz++g8pzGgXORU3rVv X-Received: by 2002:a17:90a:2dc2:b0:219:c6b6:725d with SMTP id q2-20020a17090a2dc200b00219c6b6725dmr43498146pjm.24.1671465420073; Mon, 19 Dec 2022 07:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671465420; cv=none; d=google.com; s=arc-20160816; b=VJtwtfOEZtqhhMOLsAfHZw66Jd/IshXuzYSDQseA0nBetBL3VOODhcyeYTbgqse2Vc c6euu2WkfQQQGJR9kscdCHJhJlV3/Wy6lfhK4u2oYcFcSGZ5togj+FbK6VMKF6XtKpuX t5LNTTVajR0R1gIa+4n/BvTluacF2OOeFTQ4B+YD7NyvHS3V2JkALO8P4MsnGLwN3wYA IzxsmpzEFy8sIM7OQ/QEiRUv4YZ+S8qsoEtc3pZqoELQvWYr1dbNFNDi79kqypQW6PWR k4hGzaA4rKi8M97Kv9X8lrTMUwDyYdv0dO1HctbE2pJyLezty/iHLn+E/j8du0vTTiMU OT1Q== 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=YvCsAOGVqiLyJuUIO/SM0nIA0o8rGVJQNGewjqJLv28=; b=py7ax0jHiNh3q0a0JhbWoPeo/W57s2aSQb2h0Irm5v7KpN3KUt1r7ccG+26JN5w12e pLNVTRSMm21803omEL9aZFUC7m+lfQEAXFHOafFcmJECeopPFBIAtKaMM0PCwDQI55hS mxKYBMSIuV7/Uq/jo8z2MmVQZn9mD0V6egcieXwg+ENn32S5mjjujnd+eAGhC3MssKPs hywprxhUg461dCGq4EF1O2ImeAidhM+UJh1JF+nrWVGtq1MShfFpMgRqu5xnWQhl7Bbm cMVqX9WU0ey9ciw5fk0L5d1GgEavq1pceMxLIz1f/bvcYyssdJ+2INj+PsqY7vLq3rpM mwRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=O3iV4Ond; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v135-20020a63618d000000b00478da14e043si11307983pgb.10.2022.12.19.07.56.50; Mon, 19 Dec 2022 07:57:00 -0800 (PST) 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=@baikalelectronics.ru header.s=post header.b=O3iV4Ond; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232455AbiLSOsw (ORCPT + 71 others); Mon, 19 Dec 2022 09:48:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbiLSOrV (ORCPT ); Mon, 19 Dec 2022 09:47:21 -0500 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80FE811C21; Mon, 19 Dec 2022 06:47:08 -0800 (PST) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id B0854E0EB7; Mon, 19 Dec 2022 17:47:07 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= baikalelectronics.ru; h=cc:cc:content-transfer-encoding :content-type:content-type:date:from:from:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=post; bh=YvCsAOGVqiLyJuUIO/SM0nIA0o8rGVJQNGewjqJLv28=; b=O3iV4OndzaiR DtFtkJTIZgiENVF6P5Vax0EC1PAuJn/HlUE7wKW8sbexWFHaYPQYJuIShM0AmXS2 6sNh7pmqxPQnxsheGc3sZ7XSeHt08CPWJplQoE4OvbHazspE0DiUxtTLAhLpbWU9 pVvqlU1Zk1MJHzmDQM+J7x0RqBiuyvA= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id A261EE0E70; Mon, 19 Dec 2022 17:47:07 +0300 (MSK) Received: from localhost (10.8.30.14) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 19 Dec 2022 17:47:07 +0300 From: Serge Semin To: Gustavo Pimentel , Vinod Koul , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Robin Murphy , Jingoo Han , Frank Li , Manivannan Sadhasivam CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , caihuoqing , Yoshihiro Shimoda , , , , Gustavo Pimentel Subject: [PATCH v8 09/26] dmaengine: dw-edma: Drop chancnt initialization Date: Mon, 19 Dec 2022 17:46:40 +0300 Message-ID: <20221219144658.26620-10-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221219144658.26620-1-Sergey.Semin@baikalelectronics.ru> References: <20221219144658.26620-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.14] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 DMA device drivers aren't supposed to initialize the dma_device.chancnt field. It will be done by the DMA-engine core in accordance with number of added virtual DMA-channels. Pre-initializing it with some value causes having a wrong number of channels printed in the device summary. Fixes: e63d79d1ffcd ("dmaengine: Add Synopsys eDMA IP core driver") Signed-off-by: Serge Semin Reviewed-by: Manivannan Sadhasivam Tested-by: Manivannan Sadhasivam Acked-by: Vinod Koul --- drivers/dma/dw-edma/dw-edma-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma/dw-edma/dw-edma-core.c index 6c9f95a8e397..ecd3e8f7ac5d 100644 --- a/drivers/dma/dw-edma/dw-edma-core.c +++ b/drivers/dma/dw-edma/dw-edma-core.c @@ -817,7 +817,6 @@ static int dw_edma_channel_setup(struct dw_edma *dw, bool write, dma->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); dma->dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); dma->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; - dma->chancnt = cnt; /* Set DMA channel callbacks */ dma->dev = chip->dev; -- 2.38.1