[PATCH 1/5] ARM: etm: Don't require clock control

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Feb 4 09:31:35 EST 2011


On Thu, Feb 03, 2011 at 04:30:46PM -0800, Arve Hjønnevåg wrote:
> On Thu, Feb 3, 2011 at 4:45 AM, Mark Brown

> > Would it not be cleaner for the affected platforms to ensure that
> > clk_get() does the right thing here, for example by returning a dummy
> > clock?  Otherwise we'll just silently carry on if we can't get a clock
> > we were supposed to which doesn't seem ideal.

> This clock seem to be an omap specific virtual clock that switches the
> clock source of the etb. It is not used to enable the clock when the
> etb is in use, and it does not seem to have a failure case other than
> not existing. So, I don't know that requiring this clock would cause
> fewer problems than making it optional.

That doesn't seem unreasonable, but in that case it'd be good to explain
why things are this way in the code (and the changelog) so someone
doesn't change the code back.



More information about the linux-arm-kernel mailing list