
6 Mar
2019
6 Mar
'19
7:05 a.m.
Hi Stephen
I noticed that this commit breaks my ALSA Sound playback
4472287a3b2f52f4aa53f294ccb74392dde4e07d ("clk: Introduce of_clk_get_hw_from_clkspec()")
I debuged this issue, and noticed that devm_get_clk_from_child() can't get clk my pseudo DT code is like this
deviceA: devA { ... device = <&devB> };
deviceB: devB { clocks = <xxxx> };
I could get clock on deviceB driver
// dev = deviceB clk = clk_get(dev, NULL);
clk is "clocks = <xxx>"
But, I couldn't get clock from deviceA driver
// node = device = devB node = ...
// dev = deviceA clk = devm_get_clk_from_child(dev, node, NULL);
My understanding is these can get same clock. But, am I wrong ??
Best regards --- Kuninori Morimoto