Re: [PATCH 1/8] ARM: OMAP2+: PM: protect the power domain state change by a mutex

2012-06-20 Thread Rajendra Nayak
On Thursday 14 June 2012 08:23 PM, Jean Pihet wrote: omap_set_pwrdm_state is intented to be the only API for changing a power domain state. Yes, but there are others which are used to _read_ the power domain state. Shouldn't those be protected too? This patch protects the power domains

[PATCH 1/8] ARM: OMAP2+: PM: protect the power domain state change by a mutex

2012-06-14 Thread Jean Pihet
omap_set_pwrdm_state is intented to be the only API for changing a power domain state. This patch protects the power domains settings and structs from concurrent accesses to the function by using a mutex. Signed-off-by: Jean Pihet j-pi...@ti.com --- arch/arm/mach-omap2/pm.c |8