From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 9A685DDEF0 for ; Tue, 3 Jun 2008 09:20:14 +1000 (EST) Message-ID: <48448020.5020407@freescale.com> Date: Mon, 02 Jun 2008 18:20:00 -0500 From: Scott Wood MIME-Version: 1.0 To: Kumar Gala Subject: Re: [PATCH] phylib: Don't allow core of phylib to build as a module References: <484419EE.5040503@garzik.org> <1E4EB64C-0618-497E-AABC-74EB7D74B97F@kernel.crashing.org> <48442239.7090906@garzik.org> <83820D83-487C-4586-9867-F4226A87A276@freescale.com> <48445851.4090105@garzik.org> <095F258F-72DD-4F27-A457-A57D9FAA1E76@kernel.crashing.org> In-Reply-To: <095F258F-72DD-4F27-A457-A57D9FAA1E76@kernel.crashing.org> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: netdev@vger.kernel.org, Jeff Garzik , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kumar Gala wrote: > On Jun 2, 2008, at 3:30 PM, Jeff Garzik wrote: > >> Andy Fleming wrote: >>> I'm partial to the select-it-if-you-need-it paradigm. >> >> >> AFAICS this can all be solved by the platform Kconfig ensuring that >> phylib=y > > I don't care for this as it means making sure each platform/board port > gets it right. How is this different from any other kconfig dependency? It's not too hard to scan through your platform code and see what you call... > I think we'd be better off with a small stub that is > always built into the kernel for phy_read/phy_write, etc or the function > pointer indirection mechanism. And then instead of build failures, you'd get a silent runtime failure to apply the workaround if phylib is built as a module. -Scott