Re: [PATCH] [ARM] omap: resource: Make resource_refresh() thread safe.

2009-09-11 Thread Kevin Hilman
Mike Turquette mturque...@ti.com writes: Kevin Hilman wrote: Mike Chan m...@android.com writes: Need to lock the res_mutex when traversing the res_list. Signed-off-by: Mike Chan m...@android.com Looks good, thanks. This patch causes a hang for me when transitioning to OFF mode. This

Re: [PATCH] [ARM] omap: resource: Make resource_refresh() thread safe.

2009-09-11 Thread Mike Chan
On Fri, Sep 11, 2009 at 2:10 PM, Kevin Hilmankhil...@deeprootsystems.com wrote: Mike Turquette mturque...@ti.com writes: Kevin Hilman wrote: Mike Chan m...@android.com writes: Need to lock the res_mutex when traversing the res_list. Signed-off-by: Mike Chan m...@android.com Looks good,

Re: [PATCH] [ARM] omap: resource: Make resource_refresh() thread safe.

2009-09-10 Thread Mike Turquette
Kevin Hilman wrote: Mike Chan m...@android.com writes: Need to lock the res_mutex when traversing the res_list. Signed-off-by: Mike Chan m...@android.com Looks good, thanks. This patch causes a hang for me when transitioning to OFF mode. This was tested on the Android 2.6.29 tree and is

Re: [PATCH] [ARM] omap: resource: Make resource_refresh() thread safe.

2009-09-08 Thread Kevin Hilman
Mike Chan m...@android.com writes: Need to lock the res_mutex when traversing the res_list. Signed-off-by: Mike Chan m...@android.com Looks good, thanks. Pushed to PM branch and pm-2.6.29. Kevin --- arch/arm/plat-omap/resource.c |2 ++ 1 files changed, 2 insertions(+), 0

[PATCH] [ARM] omap: resource: Make resource_refresh() thread safe.

2009-09-03 Thread Mike Chan
Need to lock the res_mutex when traversing the res_list. Signed-off-by: Mike Chan m...@android.com --- arch/arm/plat-omap/resource.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/resource.c b/arch/arm/plat-omap/resource.c index 25072cd..4631912