[RFC,PATCH 1/7] arm: add a common struct clk

Jeremy Kerr jk at ozlabs.org
Thu Jan 7 22:26:09 EST 2010


Hi Hartley,

> I'm relucant to add anything to struct clock that isn't part of the kernel-
> wide API.

This may have been a little cryptic, I'm sorry. The reason for not adding a 
'rate' member to the public clock API is that there would be now two methods 
for getting the rate of a clock: calling clk->get_rate or accessing clk->rate 
directly. The latter is not always guaranteed to work (perhaps there's a clock 
out there that needs an explicit HW query to get the rate), so we don't want 
generic drivers to be able to access this.

Cheers,


Jeremy



More information about the linux-arm-kernel mailing list