From: Takashi Iwai Subject: Re: [PATCH] ASoC force running of delayed PM work at suspend() and remove() Date: Wed, 31 Jan 2007 14:23:40 +0100 Message-ID: References: <1170246385.16760.51.camel@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1170246385.16760.51.camel@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Liam Girdwood Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 31 Jan 2007 12:26:25 +0000, Liam Girdwood wrote: > > This patch fixes a bug whereby the power management delayed work would > never be run at driver suspend() or module remove(). Delayed work would > be created (after audio had finished) with a long delay (~5 secs) and > was sometimes never queued before flush_scheduled_work() was being > called at suspend or module remove. This caused the delayed work to > queued after the module had been removed or after resume. > > This patch forces any delayed work to complete by cancelling it (timer > cannot fire and add it to queue later), scheduling it for now and > waiting on it's completion. > > This is something I probably would like to add to workqueue.c in the > next merge window, however it's here atm because it can oops. > > Signed-off-by: Liam Girdwood Applied. I guess we need to fix a similar (flush_delayed_work) in ac97 codec code, too. thanks, Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV