Linux clock framework development
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: Darren Hart <dvhart@infradead.org>, Carlo Caione <carlo@caione.org>
Cc: Enric Balletbo Serra <eballetbo@gmail.com>,
	Michael Turquette <mturquette@baylibre.com>,
	linux-clk@vger.kernel.org,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	linux@endlessm.com,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Carlo Caione <carlo@endlessm.com>
Subject: Re: [PATCH] clk: x86: Do not gate clocks enabled by the firmware
Date: Mon, 10 Jul 2017 18:29:08 -0700	[thread overview]
Message-ID: <20170711012908.GO22780@codeaurora.org> (raw)
In-Reply-To: <20170710235403.GB25390@fury>

On 07/10, Darren Hart wrote:
> On Tue, Jul 11, 2017 at 12:31:28AM +0200, Enric Balletbo Serra wrote:
> > 2017-07-10 22:38 GMT+02:00 Carlo Caione <carlo@caione.org>:
> > >         pclk->reg = base + PMC_CLK_CTL_OFFSET + id * PMC_CLK_CTL_SIZE;
> > >         spin_lock_init(&pclk->lock);
> > >
> > > +       if (plt_clk_is_enabled(&pclk->hw))
> > > +               init.flags |= CLK_IGNORE_UNUSED;

Can you add a comment to the effect of why we're adding ignore
unused here? That will make it clearer when reading the code a
year from now why we're not turning these clks off by default and
also allow us to recall why it isn't marked as a critical clk.

Probably, we want some sort of handoff mechanism here so that the
clk is left on until a driver comes into the picture and acquires
a handle to this clk?

> > > +
> > >         ret = devm_clk_hw_register(&pdev->dev, &pclk->hw);
> > >         if (ret) {
> > >                 pclk = ERR_PTR(ret);
> > > --
> > > 2.13.2
> > >
> > 
> > It also fixes the issue introduced in commit 282a4e4 ("platform/x86:
> > Enable Atom PMC platform clocks") that causes no audio on Baytrail.
> > 
> > Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> 
> Excellent, thank you Enric. Pierre, any objections to this going in to
> 4.13 now and stable back to 4.12?
> 

You mean v4.11? That's when commit 282a4e4 was released.
Typically we punt these sorts of things to the next release
because it isn't a regression in the release that's being worked
on (i.e. it wasn't introduced in this merge window), but in this
case it seems like a small enough patch plus it's a bother to
keep it out of the release to make it alright to merge now.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

  reply	other threads:[~2017-07-11  1:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-10 20:38 [PATCH] clk: x86: Do not gate clocks enabled by the firmware Carlo Caione
2017-07-10 22:31 ` Enric Balletbo Serra
2017-07-10 23:54   ` Darren Hart
2017-07-11  1:29     ` Stephen Boyd [this message]
2017-07-11  1:38       ` Darren Hart
2017-07-11  8:09       ` Carlo Caione
2017-07-24 13:49     ` Pierre-Louis Bossart
2017-07-24 14:02       ` Andy Shevchenko
2017-07-24 14:07         ` Pierre-Louis Bossart
2017-07-24 15:02           ` Enric Balletbo Serra
2017-07-24 16:26             ` Pierre-Louis Bossart
2017-07-24 16:33               ` Enric Balletbo Serra
2017-07-24 16:44                 ` Pierre-Louis Bossart

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=20170711012908.GO22780@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=carlo@caione.org \
    --cc=carlo@endlessm.com \
    --cc=dvhart@infradead.org \
    --cc=eballetbo@gmail.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux@endlessm.com \
    --cc=mturquette@baylibre.com \
    --cc=pierre-louis.bossart@linux.intel.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