From: Stephen Boyd <sboyd@codeaurora.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Michael Turquette <mturquette@baylibre.com>, linux-clk@vger.kernel.org
Subject: Re: [PATCH] clk: versatile/impd1: switch order of CLCD clocks
Date: Tue, 11 Aug 2015 18:25:30 -0700 [thread overview]
Message-ID: <20150812012530.GJ26614@codeaurora.org> (raw)
In-Reply-To: <CACRpkdbaGU8jMQY=WpkV0ZF_KfFCq167kWCD_CropJM10RC9QQ@mail.gmail.com>
On 07/31, Linus Walleij wrote:
> On Fri, Jul 31, 2015 at 8:50 AM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> > On 07/29, Linus Walleij wrote:
> >> The CLCD clocks are registered in the wrong order: first the
> >> APB clock, then the pixelclock. This should be the other way
> >> around so the driver gets the pixelclock, not the APB clock,
> >> when it asks for the first clock for the block.
> >>
> >> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> >> ---
> >
> > Is this because the consumer driver is calling clk_get() with a
> > NULL connection id for the pixelclock and then a more specific
> > connection id for the apb clk?
>
> Yes. Like most PrimeCells do.
>
> > Where's the consumer driver?
>
> The NULL (pixel) clock is taken by:
> drivers/video/fbdev/amba-clcd.c
>
> The APB "apb_pclk" clock is taken by:
> drivers/amba/bus.c
>
Ok. I'm still confused and concerned that putting the clocks into
the list in a certain order fixes anything. I thought the purpose
of a NULL clkdev connection ID was to make it so that we didn't
match the apb_pclk lookup. Instead we find the second lookup for
the device with the wildcard connection id and use that.
If this fix is valid, did you want a fixes tag on this so it goes
back to stable?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2015-08-12 1:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-29 12:23 [PATCH] clk: versatile/impd1: switch order of CLCD clocks Linus Walleij
2015-07-31 6:50 ` Stephen Boyd
2015-07-31 10:26 ` Linus Walleij
2015-08-12 1:25 ` Stephen Boyd [this message]
2015-08-12 8:40 ` Linus Walleij
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=20150812012530.GJ26614@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=linus.walleij@linaro.org \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@baylibre.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