Thread (55 messages) 55 messages, 12 authors, 2012-05-02

[alsa-devel] [PATCH 10/11] ARM: imx6q_sabrelite: clkdev_add cko1 for sgtl5000

From: Shawn Guo <hidden>
Date: 2012-05-02 03:37:13
Also in: alsa-devel, linux-i2c

On Tue, May 01, 2012 at 11:47:55PM -0300, Fabio Estevam wrote:
On Tue, May 1, 2012 at 8:39 PM, Shawn Guo [off-list ref] wrote:
quoted
On Tue, May 01, 2012 at 08:47:10PM +0800, Shawn Guo wrote:
quoted
quoted
+ ? clk_register_clkdev(cko1, NULL, "0-000a");
This dev_id looks a little strange to me. ?I understand that's the
consequence of having sgtl5000 clock managed in ASoC machine driver
imx-sgtl5000.
Just realised it's not the case. ?But shouldn't the name look like
"sgtl5000.0-000a"?
Since this is common code, we should not hardcode the I2C bus as the
codec can be connected in a I2C bus different of 0.
No, it's not.  It's a sabrelite specific lookup which is done in
imx6q_sabrelite_init, while imx6q_cko1_setup needs a better naming,
as what I already commented.

In the end, this type of board specific clock lookup should really
go into device tree.

-- 
Regards,
Shawn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help