]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:06 +0000 (08:51 -0800)
commit7dd830b8315230e29f958fd0e039e9eecad28c5d
tree8515d0542c72c1d19aebaa525273a0d978d82698
parent4ceac47e41f4d587fa71a26dc87335d639a32520
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>
drivers/usb/core/hub.c