usb: core: get config and string descriptors for unauthorized devices
authorThomas Pugliese <thomas.pugliese@gmail.com>
Mon, 9 Dec 2013 19:40:29 +0000 (13:40 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:22:21 +0000 (11:22 -0800)
commit8e3197c35eba06b8c65f80bfede432119e26ccc0
tree605cec1acda887ab5a109403d9f384541b2db492
parent29b49c82199f85661963e52c8dea0e8563bc09e8
usb: core: get config and string descriptors for unauthorized devices

commit 83e83ecb79a8225e79bc8e54e9aff3e0e27658a2 upstream.

There is no need to skip querying the config and string descriptors for
unauthorized WUSB devices when usb_new_device is called.  It is allowed
by WUSB spec.  The only action that needs to be delayed until
authorization time is the set config.  This change allows user mode
tools to see the config and string descriptors earlier in enumeration
which is needed for some WUSB devices to function properly on Android
systems.  It also reduces the amount of divergent code paths needed
for WUSB devices.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/config.c
drivers/usb/core/hub.c