Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757962AbZABLfR (ORCPT ); Fri, 2 Jan 2009 06:35:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756840AbZABLfF (ORCPT ); Fri, 2 Jan 2009 06:35:05 -0500 Received: from fias.uni-frankfurt.de ([141.2.248.1]:41878 "EHLO fias.uni-frankfurt.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756350AbZABLfE (ORCPT ); Fri, 2 Jan 2009 06:35:04 -0500 X-Greylist: delayed 1833 seconds by postgrey-1.27 at vger.kernel.org; Fri, 02 Jan 2009 06:35:03 EST From: Jan Scholz To: linux-kernel@vger.kernel.org Cc: stern@rowland.harvard.edu Cc: gregkh@suse.de Cc: marcel@holtmann.org Subject: [BUG] Regression in v2.6.28 introduced by: 'USB: skip Set-Interface(0) if already in altsetting 0' User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Date: Fri, 02 Jan 2009 12:04:17 +0100 Message-ID: <87ljtu7yvi.fsf@scholz.fias.uni-frankfurt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2006 Lines: 58 Hi, In v2.6.28 my usb bluetooth device disappears after suspend to ram: $ hcitool dev Devices: hci0 00:0D:93:15:D6:E8 $ echo mem > /sys/power/state $ hcitool dev Devices: $ The problem does not occur with the (older) hci_usb.ko, but only with btusb.ko. This is the output of lsusb: Bus 001 Device 003: ID 05ac:8203 Apple Computer, Inc. Bluetooth HCI Bisecting finds commit 24c0996 (USB: skip Set-Interface(0) if already in altsetting 0) as the first bad commit, and indeed if I use 2.6.28 with 24c0996 reverted, the bluetooth device survives suspend to ram. If you need more information/test/etc please let me know. Regards, Jan > commit 24c0996a6b73e2554104961afcc8659534503e0d > Author: Alan Stern > Date: Mon Dec 1 10:24:41 2008 -0500 > > USB: skip Set-Interface(0) if already in altsetting 0 > > When a driver unbinds from an interface, usbcore always sends a > Set-Interface request to reinstall altsetting 0. Unforunately, quite > a few devices have buggy firmware that crashes when it receives this > request. > > To avoid such problems, this patch (as1180) arranges to send the > Set-Interface request only when the interface is not already in > altsetting 0. > > Signed-off-by: Alan Stern > Signed-off-by: Greg Kroah-Hartman -- Jan Scholz ____ ____ __ ___ ( ___)(_ _) /__\ / __) Frankfurt Institute for Advanced Studies )__) _)(_ /(__)\ \__ \ (__) (____)(__)(__)(___/ Goethe Universitaet Frankfurt Ruth-Moufang-Str. 1 Tel. 069-798-47534 60438 Frankfurt am Main -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/