Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1243574rwb; Fri, 13 Jan 2023 09:36:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXvCE4/lzUh72g34OQRWhXBQd35AV1qNffcYmQ8diNgXd/6zIk/XnUpj+MYrj/ZmCQ49jSXj X-Received: by 2002:a17:906:6dce:b0:7c3:e3ef:bca1 with SMTP id j14-20020a1709066dce00b007c3e3efbca1mr68585347ejt.60.1673631404693; Fri, 13 Jan 2023 09:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673631404; cv=none; d=google.com; s=arc-20160816; b=bh3Sd3gPwYzVei/n2qb+0ENaWxElt/qESO6wbLfIaUmfC8M/KCEqQxL+5DSqI0cZBP zLJw7BVb8Iqsoquse/0/Fmcw0UQquHDUkwMGfoaGRIIzumLIMQmhr8FidnUvmyD3Y5Wt cU5mts7zyFIxYsSmn2jnc0SZULPqUp5F2fztxfPMvI6Qdz1+2//CWyy+1gJG/AAg+3n9 HQJaJ86P0IxlH1DnagTAAQ16NgIWdsPFTkJYmF85jwX99ftNIlQ+iOWW5DCVa0067zg4 DQfAuruiatYzhDYfB+0gUTb83a5G0Xg7NI7d5ufjGilhJqMrA5l5ETuCO66agTNFdCD6 WDBQ== 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=Pz3PZgNkB4kuIp8FUTUUzkHlwVrycq+tYgKjEZRBFgg=; b=i/PuEn1CucENXxbOQop4x52/BB0aJ+B260xl+IFW9RmCHlCNJub51h1jY3IPYNMcVz xJMpLh9SAX6FY3MNe6W9T4RMBmSq2xL27mKaJb7Wp52yzNhLbRjRmwDj16QauS1tJx4w UzELtDKRW1d7wKEFQAF1shVe11Aj9Vag2LxY4TiRlWymKq0YzRZX+C7BeQiLaHwcO/GG wHRS70m64bujjBwh3dxFnu9IoI3RwOMw2qChhWmKENBA4EolP4Nyte+upEafy1cIvwOn gTyTc7B0F/tVVz51F2dXqp7v98d3UXfu9/BcRa8FkNg8LBooJLdeRBRPLQkFzWkid2zk gR0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=WcUr4SDT; 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 wu1-20020a170906eec100b0081a9c3ca498si23221454ejb.314.2023.01.13.09.36.31; Fri, 13 Jan 2023 09:36:44 -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=WcUr4SDT; 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 S229510AbjAMRY1 (ORCPT + 53 others); Fri, 13 Jan 2023 12:24:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230413AbjAMRXD (ORCPT ); Fri, 13 Jan 2023 12:23:03 -0500 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5265AA2A8D; Fri, 13 Jan 2023 09:14:27 -0800 (PST) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id CF668E0F24; Fri, 13 Jan 2023 20:14:25 +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=Pz3PZgNkB4kuIp8FUTUUzkHlwVrycq+tYgKjEZRBFgg=; b=WcUr4SDTaWUX l9F4aPv+JI9ltxJxmPZ0aqmD54egH1qhikns9kdVynTNs5UOSqTJm9swzxtUL7TO aeZSKhn7VjhTjOEgznLrd8ipmSViCneUiANAfYho37kSvzjAfj5HM6YA/kzMFBqy dtu83ApNVpzd/k0QhAXkax5OEwaGYok= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id B3C55E0F13; Fri, 13 Jan 2023 20:14:25 +0300 (MSK) Received: from localhost (10.8.30.26) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 13 Jan 2023 20:14:25 +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 v9 09/27] dmaengine: dw-edma: Drop chancnt initialization Date: Fri, 13 Jan 2023 20:13:51 +0300 Message-ID: <20230113171409.30470-10-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113171409.30470-1-Sergey.Semin@baikalelectronics.ru> References: <20230113171409.30470-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.8.30.26] 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.39.0