Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp144731pxm; Tue, 22 Feb 2022 07:53:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp01AZYAbhaOQM0ex6otpoFB9WpaydAL9Iif13yhcgu2+frur+k0dpFHrIIVDGoz5Lnsqc X-Received: by 2002:aa7:d694:0:b0:410:d89a:656e with SMTP id d20-20020aa7d694000000b00410d89a656emr27843330edr.402.1645545196744; Tue, 22 Feb 2022 07:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645545196; cv=none; d=google.com; s=arc-20160816; b=mamhl0hoYHuTLCzVTpt+27R/bS/te7S3cSfqKN1Esih6ERj/in2SU45EiXQ494iY/C O0FDSEuMDFrAXkEh97YFW+IOqW0ObIeqULkqhuxv69o3qMowkClVibWeKEGnM9lFIWPl bXGbXVj/DsBoDyEy7y/kwUscY7TP+T69+YwRuKfdQUx2p3x+qi8MKnC0t/t4hfJ1DtKf PzFvd6rCsMvyHqt/dAEi/whDDz+WxBXSpvDrHaIsGGcaJmJP27XKkCXXhY24ENB6sNAD HiZR+jvIDxZWKjhCh+YgoD1/m3kr+RBURW4Fq4zXBPDAUbcjP5UopTEbA4dPnElCmWtS e+Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OWy9XC2TKuolLz+/TS3Yb1ZhuGK0YRzdL1xwKd3rm7o=; b=Y3PFfsRWhytUX8MOYt9gQF+RdzAHs9NDPh/AOKHZPQiZBXcn9F6BWWQwa/0V2ClEod x1Y8X8syDXGLfUtIndrVx3ZkEnNnwEp3OoKC5gt5EQ1xK78Cos0k8The8MFg2VRcljsP 54TdfBrVkCEcfTOGhlYuE3bFbsIfsgWGkM5Q1WgRYAwk+0PqJgpk8YCQP9vyDnxe83mj AI3/m9J1tS8GcHnM6uW1QoZAZwwf3YoNUyjc8BRXLE7Qjo/Mvo1cJvN8qKBiKABAJNi0 k2f0lhlligYLqGhKVVItg5cOdGgebVXbqkmZSoXtGQpMJpWtyGob1NRJe5R1VqVMWhmE Rvmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O2IFr1uJ; 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 e14si7910060edz.95.2022.02.22.07.52.53; Tue, 22 Feb 2022 07:53:16 -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=@kernel.org header.s=k20201202 header.b=O2IFr1uJ; 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 S233479AbiBVPbg (ORCPT + 99 others); Tue, 22 Feb 2022 10:31:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233469AbiBVPbg (ORCPT ); Tue, 22 Feb 2022 10:31:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D139D16304A; Tue, 22 Feb 2022 07:31:10 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 8786CB81AB0; Tue, 22 Feb 2022 15:31:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0B84C340E8; Tue, 22 Feb 2022 15:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645543868; bh=9i4xuAv3MAiVPzxe+5g/FOn2ai3P/TMo7VhrUW14K+E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O2IFr1uJQF5P3+BH4KDnb3lCGnQ0dO4zVDFzNwNAOsBSyd0vdUO7zOqKcw6jnU86d +N/SDg0tbXP4GZNAfMsypnDtvYGLx1c/qxngV9EEEA+YC5G9XXexTXFWGgQVx53L9s Ylf1QA9YmFhnLjCv5BHlCi/Qk7iGdBbBmQXpuj3GCXROcqQesURsx4THmKpjKWIpYE ZzOhm0DVEm2wh9/9vDB8hrQN7xCdXuEsbJFK8Khm3XxSAzntG6ZSWLRx5fnqxmDxiJ ZGVhEeTfBksBamVcq3uB/3HOztGYZ4wHbI8S37wg0nwO95p2Z3V7LuWF2kxNX3Csof xe/VCRFUeJJZg== Date: Tue, 22 Feb 2022 08:31:03 -0700 From: Nathan Chancellor To: Akhil R Cc: devicetree@vger.kernel.org, dmaengine@vger.kernel.org, jonathanh@nvidia.com, kyarlagadda@nvidia.com, ldewangan@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, p.zabel@pengutronix.de, rgumasta@nvidia.com, robh+dt@kernel.org, thierry.reding@gmail.com, vkoul@kernel.org, Pavan Kunapuli Subject: Re: [PATCH v20 2/2] dmaengine: tegra: Add tegra gpcdma driver Message-ID: References: <20220221153934.5226-1-akhilrajeev@nvidia.com> <20220221153934.5226-3-akhilrajeev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220221153934.5226-3-akhilrajeev@nvidia.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Akhil, On Mon, Feb 21, 2022 at 09:09:34PM +0530, Akhil R wrote: > Adding GPC DMA controller driver for Tegra. The driver supports dma > transfers between memory to memory, IO peripheral to memory and > memory to IO peripheral. > > Co-developed-by: Pavan Kunapuli > Signed-off-by: Pavan Kunapuli > Co-developed-by: Rajesh Gumasta > Signed-off-by: Rajesh Gumasta > Signed-off-by: Akhil R > Reviewed-by: Jon Hunter > Reviewed-by: Dmitry Osipenko > --- > drivers/dma/Kconfig | 11 + > drivers/dma/Makefile | 1 + > drivers/dma/tegra186-gpc-dma.c | 1507 ++++++++++++++++++++++++++++++++ > 3 files changed, 1519 insertions(+) > create mode 100644 drivers/dma/tegra186-gpc-dma.c > +static const struct __maybe_unused dev_pm_ops tegra_dma_dev_pm_ops = { The __maybe_unused cannot split the type ("struct dev_pm_ops") otherwise it causes a clang warning: https://lore.kernel.org/r/202202221207.lQ53BwKp-lkp@intel.com/ static const struct dev_pm_ops tegra_dma_dev_pm_ops __maybe_unused = { would look a litle better I think. However, is this attribute even needed? The variable is unconditionally used below, so there should be no warning about it being unused? Cheers, Nathan > + SET_SYSTEM_SLEEP_PM_OPS(tegra_dma_pm_suspend, tegra_dma_pm_resume) > +}; > + > +static struct platform_driver tegra_dma_driver = { > + .driver = { > + .name = "tegra-gpcdma", > + .pm = &tegra_dma_dev_pm_ops, > + .of_match_table = tegra_dma_of_match, > + }, > + .probe = tegra_dma_probe, > + .remove = tegra_dma_remove, > +}; > + > +module_platform_driver(tegra_dma_driver); > + > +MODULE_DESCRIPTION("NVIDIA Tegra GPC DMA Controller driver"); > +MODULE_AUTHOR("Pavan Kunapuli "); > +MODULE_AUTHOR("Rajesh Gumasta "); > +MODULE_LICENSE("GPL"); > -- > 2.17.1 > >