Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Jon Hunter <jon-hunter@ti.com>
To: Joel A Fernandes <joelagnel@ti.com>
Cc: linux-omap@vger.kernel.org, Russ Dill <Russ.Dill@ti.com>,
	Matt Porter <mporter@ti.com>, Steve Kipisz <s-kipisz2@ti.com>,
	Jason Kridner <jkridner@beagleboard.org>,
	Tony Lindgren <tony@atomide.com>, Paul Walmsley <paul@pwsan.com>
Subject: Re: [PATCH] AM33XX: Clock: Fix JTAG disconnect during kernel boot
Date: Fri, 16 Nov 2012 18:12:34 -0600	[thread overview]
Message-ID: <50A6D672.1020104@ti.com> (raw)
In-Reply-To: <1353109482-26478-1-git-send-email-joelagnel@ti.com>


On 11/16/2012 05:44 PM, Joel A Fernandes wrote:
> Set ENABLE_ON_INIT for debugss clock so that it is on during init and the usecount is incremented.
> Not doing so causes kernel to disable debugss clock to save power when CONFIG_OMAP_RESET_CLOCKS
> is set, causing a JTAG disconnect.
> 
> Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
> Cc: Russ Dill <Russ.Dill@ti.com>
> Cc: Matt Porter <mporter@ti.com>
> Cc: Steve Kipisz <s-kipisz2@ti.com>
> Cc: Jason Kridner <jkridner@beagleboard.org>
> Cc: Tony Lindgren <tony@atomide.com>
> ---
> Resending, as Cc list was dropped.
> 
>  arch/arm/mach-omap2/clock33xx_data.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-omap2/clock33xx_data.c b/arch/arm/mach-omap2/clock33xx_data.c
> index b7b7995..d0b4313 100644
> --- a/arch/arm/mach-omap2/clock33xx_data.c
> +++ b/arch/arm/mach-omap2/clock33xx_data.c
> @@ -585,6 +585,7 @@ static struct clk debugss_ick = {
>  	.clkdm_name	= "l3_aon_clkdm",
>  	.parent		= &dpll_core_m4_ck,
>  	.ops		= &clkops_omap2_dflt,
> +	.flags		= ENABLE_ON_INIT,
>  	.enable_reg	= AM33XX_CM_WKUP_DEBUGSS_CLKCTRL,
>  	.enable_bit	= AM33XX_MODULEMODE_SWCTRL,
>  	.recalc		= &followparent_recalc,

Does this mean this clock will always be enabled, even when not using
JTAG? If so, is that what you want?

I was not sure if you are concerned about power at all. Or if having
that always enabled can inhibit low power states for suspend/idle etc.

May be worth adding more details to the changelog about if there are
side-effects to this change or not.

Adding Paul as he is the maintainer of clocks and clock data.

Cheers
Jon




  reply	other threads:[~2012-11-17  0:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-16 23:44 [PATCH] AM33XX: Clock: Fix JTAG disconnect during kernel boot Joel A Fernandes
2012-11-17  0:12 ` Jon Hunter [this message]
2012-11-17  2:44   ` Joel A Fernandes
2012-11-19 16:15     ` Jon Hunter
2012-11-22  5:30       ` Vaibhav Hiremath
2012-11-22 21:04         ` Joel A Fernandes
2012-11-22 21:01       ` Joel A Fernandes
  -- strict thread matches above, loose matches on Subject: below --
2012-11-16 23:30 Joel A Fernandes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50A6D672.1020104@ti.com \
    --to=jon-hunter@ti.com \
    --cc=Russ.Dill@ti.com \
    --cc=jkridner@beagleboard.org \
    --cc=joelagnel@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=mporter@ti.com \
    --cc=paul@pwsan.com \
    --cc=s-kipisz2@ti.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox