Question about devm_get_clk_from_child()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux