From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Gamari Subject: Re: GPIO chip select support in McSPI Date: Mon, 14 Mar 2011 22:22:31 -0400 Message-ID: <877hc1t95k.fsf__36853.4337533221$1300155803$gmane$org@gmail.com> References: <1297635034-24504-1-git-send-email-bgamari.foss@gmail.com> <20110302215026.GA22854@angua.secretlab.ca> <87sjv517yd.fsf@gmail.com> <87ipvmx2ok.fsf@gmail.com> <20110314192536.GF16096@angua.secretlab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: spi-devel-general-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org, linux-omap To: Grant Likely Return-path: In-Reply-To: <20110314192536.GF16096-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Mon, 14 Mar 2011 13:25:36 -0600, Grant Likely wrote: > I see two solutions: > 1) platform code registers a bus notifier so that it gets called back > before the device gets bound to a driver. Then it can augment the > platform data. > This sounds like it might be a bit involved and I'm not terribly familiar with these facets of the driver model. This would probably be the more flexible approach but I think I'll stick with the simpler option. > 2) add an api to arch/arm/mach-omap2/devices.c for providing a cs > table before the device gets registered (must be called before > arch_initcall() time). > This is along the lines of what I was thinking. Any thoughts on how to get function called before arch_initcall()? - Ben ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d