From: Alan Stern Date: Mon, 1 Dec 2008 15:24:41 +0000 (-0500) Subject: USB: skip Set-Interface(0) if already in altsetting 0 X-Git-Tag: v2.6.28-rc9~8^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24c0996a6b73e2554104961afcc8659534503e0d;p=pandora-kernel.git 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 --- Reading git-diff-tree failed