From: sylvester.nawrocki@gmail.com (Sylwester Nawrocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clk: fix boot panic with non-dev-associated clocks
Date: Fri, 01 Nov 2013 00:57:26 +0100 [thread overview]
Message-ID: <5272EE66.4060701@gmail.com> (raw)
In-Reply-To: <CAPtuhTgmgionMHoG0g5ntnODAwnubWBnjuuxH3RBP236Jh_jBg@mail.gmail.com>
On 10/31/2013 08:00 PM, Mike Turquette wrote:
> On Thu, Oct 31, 2013 at 11:54 AM, Olof Johansson<olof@lixom.net> wrote:
>> On Thu, Oct 31, 2013 at 11:47 AM, Fabio Estevam<festevam@gmail.com> wrote:
>>> On Thu, Oct 31, 2013 at 3:07 PM, Olof Johansson<olof@lixom.net> wrote:
>>>> On Thu, Oct 31, 2013 at 10:05 AM, Fabio Estevam<festevam@gmail.com> wrote:
>>>>> Hi Olof,
>>>>>
>>>>> On Thu, Oct 31, 2013 at 2:49 PM, Olof Johansson<olof@lixom.net> wrote:
>>>>>> Fixes a panic at boot on many platforms. For example, on imx (wandboard),
>>>>>> I get:
>>>>>
>>>>> With this patch applied console messages appears on 20131031, but it
>>>>> seems we still have other issues:
>>>>
>>>>
>>>> Yeah, there's lots of badness in last night's -next. :(
>>>
>>> If I apply this change:
>>>
>>> --- a/drivers/clk/clkdev.c
>>> +++ b/drivers/clk/clkdev.c
>>> @@ -44,7 +44,7 @@ struct clk *of_clk_get(struct device_node *np, int index)
>>> of_clk_lock();
>>> clk = __of_clk_get_from_provider(&clkspec);
>>>
>>> - if (!IS_ERR(clk)&& !__clk_get(clk))
>>> + if (IS_ERR(clk)&& !__clk_get(clk))
>>> clk = ERR_PTR(-ENOENT);
>>
>> That doesn't look right, it'll call __clk_get() with an error code as the clock.
>>
>> Mike, seems like reverting back the clock tree to a known good state
>> (same as yesterday) and re-target 3.14 for the latest changes is a
>> suitable course of action at this time in the release cycle.
>
> I think removal of the MSM series and clock deregistration stuff is
> prudent. The Tegra pull request (with updated fixes) and EFM32 driver
> should be OK.
I agree, I thought the clock deregistration patches is something better
had exposure for couple weeks in -next. It's a bit late now for those
changes unfortunately.
> I'll cull out the questionable bits and force update.
Thanks.
Regards,
Sylwester
next prev parent reply other threads:[~2013-10-31 23:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-31 16:49 [PATCH] clk: fix boot panic with non-dev-associated clocks Olof Johansson
2013-10-31 17:05 ` Fabio Estevam
2013-10-31 17:07 ` Olof Johansson
2013-10-31 18:47 ` Fabio Estevam
2013-10-31 18:54 ` Olof Johansson
2013-10-31 19:00 ` Mike Turquette
2013-10-31 23:57 ` Sylwester Nawrocki [this message]
2013-10-31 19:02 ` Stephen Warren
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=5272EE66.4060701@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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).