[PATCH] USB: usbcore: don't check the device's power source
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 2 May 2006 19:22:41 +0000 (15:22 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 May 2006 06:43:55 +0000 (23:43 -0700)
commit436f5762bcd4929825a0725d4bc78337e6fc0d8f
treef2f709575ddec3b58d1c7c13af82bdcfc82dbfcf
parentdb4cefaaea4c6d67cdaebfd315abc791c5c9d22f
[PATCH] USB: usbcore: don't check the device's power source

The choose_configuration() routine contains code the determine the
device's power source, so that configurations requiring external power
can be ruled out if the device is running on bus power.  Unfortunately
it turns out that some devices have errors in their config descriptors
and other devices don't like the GET_DEVICE_STATUS request.

Since that information wasn't used for anything else, this patch (as673)
removes the code, leaving only a comment.  It fixes bugzilla entry
#6448.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c