From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: AM335x: Beaglebone stops to boot with current git kernel Date: Mon, 03 Dec 2012 10:19:36 -0800 Message-ID: <87mwxvathj.fsf@deeprootsystems.com> References: <20121121183809.GZ18567@atomide.com> <50ADBB5B.7090401@ti.com> <79CD15C6BA57404B839C016229A409A83EB7F222@DBDE01.ent.ti.com> <79CD15C6BA57404B839C016229A409A83EB7FB16@DBDE01.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:61149 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812Ab2LCST2 (ORCPT ); Mon, 3 Dec 2012 13:19:28 -0500 Received: by mail-pb0-f46.google.com with SMTP id wy7so2183139pbc.19 for ; Mon, 03 Dec 2012 10:19:28 -0800 (PST) In-Reply-To: <79CD15C6BA57404B839C016229A409A83EB7FB16@DBDE01.ent.ti.com> (Vaibhav Hiremath's message of "Fri, 23 Nov 2012 06:04:03 +0000") Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Hiremath, Vaibhav" Cc: Joel A Fernandes , Igor Mazanov , Tony Lindgren , Jean Pihet , "Menon, Nishanth" , "linux-omap@vger.kernel.org" "Hiremath, Vaibhav" writes: >> >>> +static struct omap_hwmod am33xx_debugss_hwmod = { >> >>> + .name = "debugss", >> >>> + .class = &am33xx_debugss_hwmod_class, >> >>> + .clkdm_name = "l3_aon_clkdm", >> >>> + .main_clk = "debugss_ick", >> >>> + .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), >> >> Setting these flags would still leave the problem where JTAG clocks >> are on when its not required no? In that case, what is the advantage >> of this patch? >> > > I missed to wrap it around #ifdef CONFIG_DEBUG_KERNEL. I will submit the > formal patch shortly. IMO, this should not be handled in the data at all (neither clock nor hwmod), and should be handled at runtime/boot-time, not compile time. The solution to this is to rather to have a small bit of code that requests the debugss clocks that are needed for JTAG debug, so the kernel knows they are in use. That code could then be enabled at boot time via command-line or DT option. Kevin