[PATCH 3/3] OMAP4: clockdomain: Add wkup/sleep dependency support

Paul Walmsley paul at pwsan.com
Thu Feb 10 23:37:57 EST 2011


On Fri, 11 Feb 2011, Rajendra Nayak wrote:

> My initial version actually did have a check for cd->clkdm_name instead 
> of cd->clkdm, and then I ran into aborts when a clkdm, though belonging 
> to the right chip version, failed lookup (in clkdm_init) and left the 
> cd->clkdm pointer NULL. This however was due to the fact that the 
> clkdm_name populated was'nt matching the actual name,

So those aborts were due to clockdomain or clockdomain dependency data 
that had errors that caused it not to have referential integrity?

> Would it make sense to add an additional check here to avoid
> an abort in case of mismatches in clkdm_name populated and
> lookup's failing in clkdm_init?
> 
> Something like...
> 
> 		If (cd->clkdm) {
> 			|= 1 << cd->clkdm->dep_bit;
> 			atomic_set(&cd->wkdep_usecount, 0);
> 		}

That is going to fail silently.  If I'm understanding the problem 
that you're referring to correctly, it seems to me that in these 
circumstances, we want to fail loudly.  Especially now that all that data 
is supposed to be autogenerated.  It is a symptom of a more profound 
problem that the end user should never see, no?


- Paul



More information about the linux-arm-kernel mailing list