Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1329893
| From | Masahiro Yamada <yamada.masahiro@socionext.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: commit 5146e0b05963 is causing a kernel crash on SoCFPGA |
| Date | 2016-02-09 05:10 +0100 |
| Message-ID | <r07MK-72e-1@gated-at.bofh.it> (permalink) |
| References | <r06nE-5S0-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Dinh,
Thanks for your report.
2016-02-09 11:35 GMT+09:00 Dinh Nguyen <dinguyen@kernel.org>:
> Hi Stephen,
>
> It appears that commit 5146e0b05966 "clk: simplify __clk_init_parent()"
> that is currently in linux-next is causing the following kernel crash on
> SoCFGPA[1].
>
> I have bisected to this commit and doing a revert of the commit fixes
> the issue.
Could you check if the following simple patch fixes your problem?
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -1662,7 +1662,7 @@ static struct clk_core *__clk_init_parent(struct
clk_core *core)
{
u8 index = 0;
- if (core->ops->get_parent)
+ if (core->num_parents > 1 && core->ops->get_parent)
index = core->ops->get_parent(core->hw);
return clk_core_get_parent_by_index(core, index);
Let me ask one more question.
Do SoCFPGA clocks define .get_parent callback even if num_parents <= 1 ?
I just skimmed over driver/clk/socfpga/clk-gate.c
and found it defines .get_parent().
I think a gating clock is usually single-parent (so not need to have
.get_parent),
but I am not sure if this is the case.
--
Best Regards
Masahiro Yamada
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
commit 5146e0b05963 is causing a kernel crash on SoCFPGA Dinh Nguyen <dinguyen@kernel.org> - 2016-02-09 03:40 +0100
Re: commit 5146e0b05963 is causing a kernel crash on SoCFPGA Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-09 05:10 +0100
Re: commit 5146e0b05963 is causing a kernel crash on SoCFPGA Dinh Nguyen <dinguyen@kernel.org> - 2016-02-09 11:20 +0100
Re: commit 5146e0b05963 is causing a kernel crash on SoCFPGA Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-09 12:30 +0100
Re: commit 5146e0b05963 is causing a kernel crash on SoCFPGA Stephen Boyd <sboyd@codeaurora.org> - 2016-02-09 19:20 +0100
csiph-web