From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 0E5F9DE381 for ; Fri, 26 Sep 2008 06:16:54 +1000 (EST) Message-ID: <48DBF1AC.9060909@freescale.com> Date: Thu, 25 Sep 2008 15:16:44 -0500 From: Scott Wood MIME-Version: 1.0 To: Timur Tabi Subject: Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module References: <1222293567-17694-1-git-send-email-timur@freescale.com> <2a27d3730809242354u4cc24b96yda3973bfc3ddac92@mail.gmail.com> <48DB9816.4020603@freescale.com> <20080925184020.GA5230@ld0162-tx32.am.freescale.net> <48DBDFC7.1060907@freescale.com> <48DBE1E1.6030709@freescale.com> In-Reply-To: <48DBE1E1.6030709@freescale.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-dev@ozlabs.org, dan.j.williams@intel.com, Li Yang , linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Timur Tabi wrote: > Scott Wood wrote: > >>> I chose subsys_initcall() to increase the probability that fsldma is >>> already present when DMA clients are loaded/initialized and register. >> If there's no dependency, why does it matter whether fsldma is already >> present? > > Re-read my explanation, please. I read it just fine the first time. > Technically, it doesn't *matter* in that > nothing will break, but so what? It's nicer if the DMA driver is already > available when the client drivers load, so that they can use the DMA facilities > right away. It's not nicer to people reading the code and wondering why, or to people who use it as a module and execute less-well-tested code paths, and I doubt it's a significant addition to boot time to do things in the normal way. I'm not particularly worried about the code going on strike because we're not being "nice" to it. -Scott