Re: [PATCH 30/57] power: ab8500: Flush & sync all works

2012-09-28 Thread Anton Vorontsov
On Fri, Sep 28, 2012 at 12:28:03PM -0600, Mathieu Poirier wrote: [...] > >> + flush_delayed_work_sync(&di->attach_work); > >> + flush_delayed_work_sync(&di->usb_charger_attached_work); > >> + flush_delayed_work_sync(&di->ac_charger_attached_work); > >> + flush_delayed_work_sync(&di->check_usbch

Re: [PATCH 30/57] power: ab8500: Flush & sync all works

2012-09-28 Thread Mathieu Poirier
On 12-09-27 01:23 AM, Anton Vorontsov wrote: > On Tue, Sep 25, 2012 at 10:12:27AM -0600, mathieu.poir...@linaro.org wrote: >> From: Jonas Aaberg >> >> Flush and sync all workqueues at suspend to avoid >> that we suspend in the middle of a work. >> >> Signed-off-by: Jonas Aaberg >> Signed-off-by:

Re: [PATCH 30/57] power: ab8500: Flush & sync all works

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:27AM -0600, mathieu.poir...@linaro.org wrote: > From: Jonas Aaberg > > Flush and sync all workqueues at suspend to avoid > that we suspend in the middle of a work. > > Signed-off-by: Jonas Aaberg > Signed-off-by: Mathieu Poirier > Reviewed-by: Marcus COOPER > ---

[PATCH 30/57] power: ab8500: Flush & sync all works

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Flush and sync all workqueues at suspend to avoid that we suspend in the middle of a work. Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER --- drivers/power/ab8500_charger.c | 11 +++ drivers/power/ab8500_fg.c |5 +++