From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 7/7] 4460sdp/blaze/panda: hwmod: Prevent gpio1 reset during hwmod init Date: Thu, 30 Jun 2011 23:32:41 -0700 Message-ID: <20110701063241.GX23145@atomide.com> References: <1309486081-8257-1-git-send-email-rnayak@ti.com> <1309486081-8257-2-git-send-email-rnayak@ti.com> <1309486081-8257-3-git-send-email-rnayak@ti.com> <1309486081-8257-4-git-send-email-rnayak@ti.com> <1309486081-8257-5-git-send-email-rnayak@ti.com> <1309486081-8257-6-git-send-email-rnayak@ti.com> <1309486081-8257-7-git-send-email-rnayak@ti.com> <1309486081-8257-8-git-send-email-rnayak@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:20014 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753159Ab1GAGco (ORCPT ); Fri, 1 Jul 2011 02:32:44 -0400 Content-Disposition: inline In-Reply-To: <1309486081-8257-8-git-send-email-rnayak@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Rajendra Nayak Cc: linux-omap@vger.kernel.org, paul@pwsan.com, khilman@ti.com, b-cousson@ti.com, Nishanth Menon , Moiz Sonasath * Rajendra Nayak [110630 19:03]: > For 4460sdp/blaze/panda, GPIO-7 of bank1 is used for controlling > the TPS modes, hence GPIO1 should not be reset > during init as reset will cause the TPS voltage to > drop to 0.9 V preventing the system from continuing the boot. NAK for this patch. We don't want any of this in init_early. The problem is with hwmod core code that wrongly assumes it can just reset all devices. We should fix the hwmod code to lazily only reset devices as they are enabled, and only reset unused devices with late_initcall when we have decent debug output. And the reset of unused devices should be possible to turn off with some kernel cmdline option. Regards, Tony > --- a/arch/arm/mach-omap2/board-4430sdp.c > +++ b/arch/arm/mach-omap2/board-4430sdp.c > @@ -36,6 +36,7 @@ > #include > #include > #include > +#include > #include