From patchwork Mon Feb 14 11:03:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejun Heo X-Patchwork-Id: 554631 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1EB4O4i016548 for ; Mon, 14 Feb 2011 11:04:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753173Ab1BNLDq (ORCPT ); Mon, 14 Feb 2011 06:03:46 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:61192 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753002Ab1BNLDp (ORCPT ); Mon, 14 Feb 2011 06:03:45 -0500 Received: by fxm20 with SMTP id 20so5039560fxm.19 for ; Mon, 14 Feb 2011 03:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=4oisBn9mgt89vdU/fJ8FqNGHF6/LVmY5vHfYEG8WlVY=; b=lBBk4Io0z+9rBh4q6NZUp3ch/be7m1Ng6opbX2Z/7N79FXpdgk818b4Y++qIoO3dIz qM7uGQVvdbvg3x4n0xCJVknSxmMr4bw8zIZWO2F0A619WAlN/jVljIpVDh6LfIhFITJL XiFC+9P7LVFoeL9qwZ2PtR5jyc96ui3qTBCu8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=FSZ/gafD51hbqYr9I3x0jit7nMdUWU059SvE4g4BSNRjGo5qJ6i57vbpMKA+SaqkCK nwhmqLu3tZ3aWq29oz6dd4QcjDUj0mEk5Q9uWAg5EpOJtUEljOiBQugMYTz01/CdHzXg kGHresaZAfUafp3W49++iZ21AIwnoEWcuexko= Received: by 10.223.96.73 with SMTP id g9mr4353640fan.24.1297681423465; Mon, 14 Feb 2011 03:03:43 -0800 (PST) Received: from htj.dyndns.org ([130.75.117.88]) by mx.google.com with ESMTPS id n1sm978187fam.16.2011.02.14.03.03.41 (version=SSLv3 cipher=OTHER); Mon, 14 Feb 2011 03:03:42 -0800 (PST) Date: Mon, 14 Feb 2011 12:03:39 +0100 From: Tejun Heo To: Dmitry Torokhov Cc: Andy Walls , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, stoth@kernellabs.com Subject: Re: cx23885-input.c does in fact use a workqueue.... Message-ID: <20110214110339.GC18742@htj.dyndns.org> References: <1297647322.19186.61.camel@localhost> <20110214043355.GA28090@core.coreip.homeip.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110214043355.GA28090@core.coreip.homeip.net> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 14 Feb 2011 11:04:24 +0000 (UTC) diff --git a/drivers/media/video/cx23885/cx23885-input.c b/drivers/media/video/cx23885/cx23885-input.c index 199b996..e27cedb 100644 --- a/drivers/media/video/cx23885/cx23885-input.c +++ b/drivers/media/video/cx23885/cx23885-input.c @@ -229,6 +229,9 @@ static void cx23885_input_ir_stop(struct cx23885_dev *dev) v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, ¶ms); v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, ¶ms); } + flush_work_sync(&dev->cx25840_work); + flush_work_sync(&dev->ir_rx_work); + flush_work_sync(&dev->ir_tx_work); } static void cx23885_input_ir_close(struct rc_dev *rc)