From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] OMAP: hwmod: add kernel cmdline flag to avoid resetting IP blocks during init Date: Tue, 5 Jul 2011 23:43:26 -0700 Message-ID: <20110706064326.GI5783@atomide.com> References: <20110703010204.19046.85186.stgit@dusk> <20110703010206.19046.85293.stgit@dusk> <20110704085503.GQ23145@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Paul Walmsley Cc: =?utf-8?Q?Beno=C3=AEt?= Cousson , Rajendra Nayak , linux-kernel@vger.kernel.org, Aaro Koskinen , Michael Buesch , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: linux-omap@vger.kernel.org * Paul Walmsley [110705 18:55]: > On Tue, 5 Jul 2011, Paul Walmsley wrote: > > > For this case, we probably need some board file function to tell the > > hwmod code to disregard a device completely, to tell the kernel to > > pretend that the device does not exist. > > ... and the other problem here is that we currently probe devices via an > arch_initcall(), and the board file init_machine is also an arch_initcall. > Either we'll need to be very careful about Makefile ordering, or we should > just call omap2_init_devices() from the board file init_machine directly. > The latter makes the most sense to me. And that can then be passed the list of devices with the special flags for noreset, disabled and reserved. Then the late_initcall can optionally reset the rest of the devices. Regards, Tony