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>
Fri, 11 Jan 2013 20:15:14 +0000 (12:15 -0800)
commit07e72b95f5038cc82304b9a4a2eb7f9fc391ea68
treeacaf6f915ee00be5931eaa570d8e8b246b8cdf50
parent036915a7a402753c05b8d0529f5fd08805ab46d0
USB: hub: handle claim of enabled remote wakeup after reset

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c