]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: hub: handle claim of enabled remote wakeup after reset
authorOliver Neukum <oliver@neukum.org>
Thu, 29 Nov 2012 14:05:57 +0000 (15:05 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:31 +0000 (04:33 +0000)
commit61c1cdc4b8f0789e93bfb835e69b351412762af1
tree0442bcb164346cdaa3e401f0ca82ebdbb5b86db5
parent011321db1cb95b2c8917c280c151b6b89bd6b8c6
USB: hub: handle claim of enabled remote wakeup after reset

commit 07e72b95f5038cc82304b9a4a2eb7f9fc391ea68 upstream.

Some touchscreens have buggy firmware which claims
remote wakeup to be enabled after a reset. They nevertheless
crash if the feature is cleared by the host.
Add a check for reset resume before checking for
an enabled remote wakeup feature. On compliant
devices the feature must be cleared after a reset anyway.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/core/hub.c