[PATCHv2] ARM: omap2+: omap_hwmod: Set unique lock_class_key per hwmod

Paul Walmsley paul at pwsan.com
Tue Feb 10 12:20:36 PST 2015


On Tue, 10 Feb 2015, Peter Ujfalusi wrote:

> Add struct lock_class_key to omap_hwmod struct and use it to set unique
> lockdep class per hwmod.
> This will ensure that lockdep will know that each omap_hwmod->_lock should
> be treated as separate class and will not give false warning about deadlock
> or other issues due to nested use of hwmods.
> DRA7x's ATL hwmod is one example for this since McASP can select ATL clock
> as functional clock, which will trigger nested oh->_lock usage. This will
> trigger false warning from lockdep validator as it is dealing with classes
> and for it all hwmod clocks are the same class.
> 
> Suggested-by: Peter Zijlstra <peterz at infradead.org>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi at ti.com>

Thanks queued for v3.20-rc.


- Paul



More information about the linux-arm-kernel mailing list