* [U-Boot] [bug report] Incorrect result from clk_get_by_name
@ 2017-04-10 2:45 Ziyuan
2017-04-10 17:42 ` Simon Glass
0 siblings, 1 reply; 2+ messages in thread
From: Ziyuan @ 2017-04-10 2:45 UTC (permalink / raw)
To: u-boot
hi all,
I hit an issue about clk_get_by_name w/ fdt.
I wanna get a specified clock cell from dts via clk_get_by_name. eg:
clk_get_by_name(, "ciu-sample",..) from 'emmc: dwmmc at ff0f0000' on rk3288
platform which it has four clock cell: "biu", "ciu", "ciu_drv",
"ciu_sample".
I found that the clock list has only one element, it's "biu". I expected
that there are four elements.
Actually, I can use clk_get_by_index instead, but I prefer clock name,
it's more readable.
Ziyuan Xu
BR
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] [bug report] Incorrect result from clk_get_by_name
2017-04-10 2:45 [U-Boot] [bug report] Incorrect result from clk_get_by_name Ziyuan
@ 2017-04-10 17:42 ` Simon Glass
0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2017-04-10 17:42 UTC (permalink / raw)
To: u-boot
Hi,
On 9 April 2017 at 20:45, Ziyuan <xzy.xu@rock-chips.com> wrote:
> hi all,
>
> I hit an issue about clk_get_by_name w/ fdt.
> I wanna get a specified clock cell from dts via clk_get_by_name. eg:
> clk_get_by_name(, "ciu-sample",..) from 'emmc: dwmmc at ff0f0000' on rk3288
> platform which it has four clock cell: "biu", "ciu", "ciu_drv",
> "ciu_sample".
> I found that the clock list has only one element, it's "biu". I expected
> that there are four elements.
>
> Actually, I can use clk_get_by_index instead, but I prefer clock name, it's
> more readable.
Perhaps there is a bug in fdt_stringlist_search()? Can you try to debug it?
Also I see that test/dm/clk.c does not have a test for
clk_get_by_name(). If you have time, please add a test for that since
it is an important function.
Regards,
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-10 17:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-10 2:45 [U-Boot] [bug report] Incorrect result from clk_get_by_name Ziyuan
2017-04-10 17:42 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox