From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933258AbXGRBtP (ORCPT ); Tue, 17 Jul 2007 21:49:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756426AbXGRBtC (ORCPT ); Tue, 17 Jul 2007 21:49:02 -0400 Received: from gateway.insightbb.com ([74.128.0.19]:32957 "EHLO asav14.insightbb.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756303AbXGRBtA (ORCPT ); Tue, 17 Jul 2007 21:49:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApkZAOAOnUZKhRO4Rmdsb2JhbACHLogLAQEBFg0GDA From: Dmitry Torokhov To: Soeren Sonnenburg Subject: Re: [PATCH] appletouch powersaving - please apply for =?utf-8?q?2=2E6=2E23-rc1=09take?= #3 Date: Tue, 17 Jul 2007 21:48:56 -0400 User-Agent: KMail/1.9.3 Cc: Linux Kernel , linux-input@atrey.karlin.mff.cuni.cz, linux-usb-devel@lists.sourceforge.net, Matthew Garrett , Nicolas Boichat , Michael Hanselmann , Peter Osterlund , Frank Arnold , Stelian Pop , Johannes Berg , Greg Kroah-Hartman References: <1184656218.14051.43.camel@localhost> <1184696179.6161.18.camel@localhost> In-Reply-To: <1184696179.6161.18.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707172148.58367.dtor@insightbb.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 17 July 2007 14:16, Soeren Sonnenburg wrote: > On Tue, 2007-07-17 at 11:01 -0400, Dmitry Torokhov wrote: > > Hi, > > > > On 7/17/07, Soeren Sonnenburg wrote: > > > > > > err_free_buffer: > > > @@ -656,6 +699,7 @@ static void atp_disconnect(struct usb_interface *iface) > > > > > > usb_set_intfdata(iface, NULL); > > > if (dev) { > > > + cancel_work_sync(&dev->work); > > > usb_kill_urb(dev->urb); > > > input_unregister_device(dev->input); > > > usb_buffer_free(dev->udev, dev->datalen, > > > > > > > This should go into atp_close() and I think you need to do > > cancel_work_sync after calling usb_kill_urb() otherwise you risk it > > being submitted while you gettingto kill the urb. > > good catch. modified patch accordingly+attached. > > > How many boxes did you try this patch on? > > Mine plus 1 other. However please note that Matthews patch has been > (which is what this patch is based on) is in the mactel-patches > repository for quite some time now and that the not-yet-cleanup up > variant of this patch was posted to mactel-devel... > > So the modeswitch part should work... > OK, can I please get signed-off-bys for the latest version so I can apply it? Thanks! -- Dmitry