From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v2 05/18] reset: Add reset_controller_of_init() function Date: Tue, 10 Mar 2015 16:00:44 +0100 Message-ID: <8729383.kvUZDm4dQz@wuerfel> References: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> <1424455277-29983-6-git-send-email-mcoquelin.stm32@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1424455277-29983-6-git-send-email-mcoquelin.stm32@gmail.com> Sender: linux-doc-owner@vger.kernel.org To: Maxime Coquelin Cc: u.kleine-koenig@pengutronix.de, afaerber@suse.de, geert@linux-m68k.org, Rob Herring , Philipp Zabel , Jonathan Corbet , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Daniel Lezcano , Thomas Gleixner , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Antti Palosaari , Tejun Heo , Will Deacon , Nikolay Borisov Rus List-Id: linux-arch.vger.kernel.org On Friday 20 February 2015 19:01:04 Maxime Coquelin wrote: > Some platforms need to initialize the reset controller before the timers. > > This patch introduces a reset_controller_of_init() function that can be > called before the timers intialization. > > Signed-off-by: Maxime Coquelin > Not sure about this. It seems like the cleanest approach if we get a lot of these, but then again it is probably very rare, and I'd like to avoid adding such infrastructure if it's just for one SoC. Could we add a hack in the machine initialization instead? I think ideally this would be done in the boot loader before we even start Linux, but I don't know if that's possible for you. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de ([212.227.17.24]:58444 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbbCJPBo (ORCPT ); Tue, 10 Mar 2015 11:01:44 -0400 From: Arnd Bergmann Subject: Re: [PATCH v2 05/18] reset: Add reset_controller_of_init() function Date: Tue, 10 Mar 2015 16:00:44 +0100 Message-ID: <8729383.kvUZDm4dQz@wuerfel> In-Reply-To: <1424455277-29983-6-git-send-email-mcoquelin.stm32@gmail.com> References: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> <1424455277-29983-6-git-send-email-mcoquelin.stm32@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-arch-owner@vger.kernel.org List-ID: To: Maxime Coquelin Cc: u.kleine-koenig@pengutronix.de, afaerber@suse.de, geert@linux-m68k.org, Rob Herring , Philipp Zabel , Jonathan Corbet , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Daniel Lezcano , Thomas Gleixner , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Antti Palosaari , Tejun Heo , Will Deacon , Nikolay Borisov , Rusty Russell , Kees Cook , Michal Marek , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Message-ID: <20150310150044.CFtQlS-lUQzhHv-3dx1nFRZBlfAazt1ojJfc8qmCRuE@z> On Friday 20 February 2015 19:01:04 Maxime Coquelin wrote: > Some platforms need to initialize the reset controller before the timers. > > This patch introduces a reset_controller_of_init() function that can be > called before the timers intialization. > > Signed-off-by: Maxime Coquelin > Not sure about this. It seems like the cleanest approach if we get a lot of these, but then again it is probably very rare, and I'd like to avoid adding such infrastructure if it's just for one SoC. Could we add a hack in the machine initialization instead? I think ideally this would be done in the boot loader before we even start Linux, but I don't know if that's possible for you. Arnd