From: Darren Hart <dvhart@infradead.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Carlo Caione <carlo@caione.org>,
mturquette@baylibre.com, linux-clk@vger.kernel.org,
pierre-louis.bossart@linux.intel.com, sboyd@codeaurora.org,
linux@endlessm.com, eballetbo@gmail.com,
Carlo Caione <carlo@endlessm.com>
Subject: Re: [PATCH v2] clk: x86: Do not gate clocks enabled by the firmware
Date: Thu, 13 Jul 2017 08:54:48 -0700 [thread overview]
Message-ID: <20170713155448.GD15146@fury> (raw)
In-Reply-To: <1499940374.22624.370.camel@linux.intel.com>
On Thu, Jul 13, 2017 at 01:06:14PM +0300, Andy Shevchenko wrote:
> On Thu, 2017-07-13 at 11:42 +0200, Carlo Caione wrote:
> > From: Carlo Caione <carlo@endlessm.com>
> >
> > Read the enable register to determine if the clock is already in use
> > by
> > the firmware. In this case avoid gating the clock.
> >
>
> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> I suppose it should go via clock tree.
>
> > Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> > Signed-off-by: Carlo Caione <carlo@endlessm.com>
> > ---
> > drivers/clk/x86/clk-pmc-atom.c | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/drivers/clk/x86/clk-pmc-atom.c b/drivers/clk/x86/clk-pmc-
> > atom.c
> > index 2b60577703ef..3c73d2e564ca 100644
> > --- a/drivers/clk/x86/clk-pmc-atom.c
> > +++ b/drivers/clk/x86/clk-pmc-atom.c
> > @@ -185,6 +185,13 @@ static struct clk_plt *plt_clk_register(struct
> > platform_device *pdev, int id,
> > pclk->reg = base + PMC_CLK_CTL_OFFSET + id *
> > PMC_CLK_CTL_SIZE;
> > spin_lock_init(&pclk->lock);
> >
> > + /*
> > + * If the clock was already enabled by the firmware mark is a
> > critical
Nit... I think this should read... "mark it as critical" ?
> > + * to avoid it being gated by the clock framework if no
> > driver owns it
owns it.
Acked-by: Darren Hart (VMware) <dvhart@infradead.org>
--
Darren Hart
VMware Open Source Technology Center
next prev parent reply other threads:[~2017-07-13 15:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-13 9:42 [PATCH v2] clk: x86: Do not gate clocks enabled by the firmware Carlo Caione
2017-07-13 10:06 ` Andy Shevchenko
2017-07-13 15:54 ` Darren Hart [this message]
2017-07-14 8:19 ` Carlo Caione
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=20170713155448.GD15146@fury \
--to=dvhart@infradead.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=carlo@caione.org \
--cc=carlo@endlessm.com \
--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 \
--cc=sboyd@codeaurora.org \
/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;
as well as URLs for NNTP newsgroup(s).