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>
Mon, 9 Dec 2013 21:27:32 +0000 (13:27 -0800)
commit83e83ecb79a8225e79bc8e54e9aff3e0e27658a2
tree04be30e360c80b9abb6d5a938568da2cbd633c00
parenta2cd612dc9be768b516541b2164c843849bc3bb3
usb: core: get config and string descriptors for unauthorized devices

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