From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752556AbcEXDrN (ORCPT ); Mon, 23 May 2016 23:47:13 -0400 Received: from mga01.intel.com ([192.55.52.88]:3344 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbcEXDrL (ORCPT ); Mon, 23 May 2016 23:47:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208";a="707886945" Date: Tue, 24 May 2016 09:23:30 +0530 From: Vinod Koul To: Paul Gortmaker Cc: Jon Hunter , Laxman Dewangan , Stephen Warren , Thierry Reding , Alexandre Courbot , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , dmaengine@vger.kernel.org, linux-tegra@vger.kernel.org, LKML Subject: Re: [PATCH V3 0/2] Add support for Tegra210 ADMA Message-ID: <20160524035329.GO2735@localhost> References: <1444980919-20331-1-git-send-email-jonathanh@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20, 2016 at 02:51:14PM -0400, Paul Gortmaker wrote: > On Fri, Oct 16, 2015 at 3:35 AM, Jon Hunter wrote: > > Add support for the Tegra210 Audio DMA (ADMA) controller. This was > > originally distributed as an RFC [0] based upon the existing tegra > > APB-DMA driver. Since then the driver has been significantly > > re-worked to remove a lot of the unused/unnecessary functionality > > that was carried over from the APB-DMA. This version is no longer > > derived from the APB-DMA driver and has been updated to use the > > virt-dma helpers. > > Does this driver make sense to support modular use? I ask because > it inherits the inconsistency of being a bool Kconfig but using some > modular infrastructure from the APB driver. > > Sometime ago when I sent patches to dma/* to "demodularize" other > bools, the general consensus of reviewers/maintainers was that > (to paraphrase) "if it can be modular, it should be modular" -- in > order to keep the multi platform bzImage size as small as can be. > > I did a quick test with it tristate, but that fails as follows: > > ERROR: "pm_clk_add_clk" [drivers/dma/tegra210-adma.ko] undefined! > ERROR: "pm_clk_create" [drivers/dma/tegra210-adma.ko] undefined! > ERROR: "pm_clk_destroy" [drivers/dma/tegra210-adma.ko] undefined! > ERROR: "pm_clk_suspend" [drivers/dma/tegra210-adma.ko] undefined! > ERROR: "pm_clk_resume" [drivers/dma/tegra210-adma.ko] undefined! > > ...since drivers/base/power/clock_ops.c does not currently have any of > those fcns as EXPORT_SYMBOL. Not a show-stopper, but I don't > want to blindly export those fcns if it doesn't make sense. Sure, patch is welcome! -- ~Vinod