From: Felipe Balbi <balbi@ti.com>
To: Tero Kristo <t-kristo@ti.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>,
Paul Walmsley <paul@pwsan.com>,
Mike Turquette <mturquette@linaro.org>,
linux-omap@vger.kernel.org, Nishanth Menon <nm@ti.com>,
Felipe Balbi <balbi@ti.com>
Subject: Re: [RFC PATCH] clk: ti: set CLK_SET_RATE_NO_REPARENT for ti,mux-clock
Date: Tue, 1 Jul 2014 14:48:33 -0500 [thread overview]
Message-ID: <20140701194833.GH13396@saruman.home> (raw)
In-Reply-To: <53A2CA7A.60206@ti.com>
[-- Attachment #1: Type: text/plain, Size: 1884 bytes --]
Hi,
On Thu, Jun 19, 2014 at 02:33:14PM +0300, Tero Kristo wrote:
> On 06/17/2014 11:04 AM, Tomi Valkeinen wrote:
> >When setting the rate of a clock, by default the clock framework will
> >change the parent of the clock to the most suitable one in
> >__clk_mux_determine_rate() (most suitable by looking at the clock rate).
> >
> >This is a rather dangerous default, and causes problems on AM43x when
> >using display and ethernet. There are multiple ways to select the clock
> >muxes on AM43x, and some of those clock paths have the same source
> >clocks for display and ethernet. When changing the clock rate for the
> >display subsystem, the clock framework decides to change the display mux
> >from the dedicated display PLL to a shared PLL which is used by the
> >ethernet, and then changes the rate of the shared PLL, breaking the
> >ethernet.
> >
> >As I don't think there ever is a case where we want the clock framework
> >to automatically change the parent clock of a clock mux, this patch sets
> >the CLK_SET_RATE_NO_REPARENT for all ti,mux-clocks.
> >
> >Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> >---
> > drivers/clk/ti/mux.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/drivers/clk/ti/mux.c b/drivers/clk/ti/mux.c
> >index 0197a478720c..e9d650e51287 100644
> >--- a/drivers/clk/ti/mux.c
> >+++ b/drivers/clk/ti/mux.c
> >@@ -160,7 +160,7 @@ static void of_mux_clk_setup(struct device_node *node)
> > u8 clk_mux_flags = 0;
> > u32 mask = 0;
> > u32 shift = 0;
> >- u32 flags = 0;
> >+ u32 flags = CLK_SET_RATE_NO_REPARENT;
> >
> > num_parents = of_clk_get_parent_count(node);
> > if (num_parents < 2) {
> >
>
> Thanks, queued for 3.16-rc fixes.
did you skip a few -rcs by any chance? Looks like this could've been
merged on v3.16-rc3... Just checking.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-07-01 19:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 8:04 [RFC PATCH] clk: ti: CLK_SET_RATE_NO_REPARENT for ti,mux-clock Tomi Valkeinen
2014-06-17 8:04 ` [RFC PATCH] clk: ti: set " Tomi Valkeinen
2014-06-17 8:11 ` Tero Kristo
2014-06-17 8:19 ` Paul Walmsley
2014-06-17 8:23 ` Tero Kristo
2014-06-17 21:08 ` Mike Turquette
2014-06-18 6:33 ` Paul Walmsley
2014-06-17 8:15 ` Paul Walmsley
2014-06-17 21:34 ` Mike Turquette
2014-06-18 6:57 ` Paul Walmsley
2014-06-18 7:06 ` Paul Walmsley
2014-06-17 13:23 ` Felipe Balbi
2014-06-19 11:33 ` Tero Kristo
2014-07-01 19:48 ` Felipe Balbi [this message]
2014-07-03 7:41 ` Tero Kristo
2014-07-03 22:06 ` Mike Turquette
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=20140701194833.GH13396@saruman.home \
--to=balbi@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=nm@ti.com \
--cc=paul@pwsan.com \
--cc=t-kristo@ti.com \
--cc=tomi.valkeinen@ti.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;
as well as URLs for NNTP newsgroup(s).