diff options
author | Oliver Neukum <oneukum@suse.de> | 2007-01-26 08:26:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-23 18:03:46 -0500 |
commit | 7ceec1f1d26f966c0816b86a1aab1e0b3b208757 (patch) | |
tree | 3b444fb3eedff17366a7aa01106ee7eed50e051a /drivers/usb/core/hub.c | |
parent | bb417020ba8c559eb52f57379ba17f669f8f72cd (diff) |
USB: add a blacklist for devices that can't handle some things we throw at them.
This adds a blacklist to the USB core to handle some autosuspend and
string issues that devices have.
Originally written by Oliver, but hacked up a lot by Greg.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r-- | drivers/usb/core/hub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 50c0db15304a..41400743ce2c 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -1287,6 +1287,9 @@ int usb_new_device(struct usb_device *udev) | |||
1287 | if (!try_module_get(THIS_MODULE)) | 1287 | if (!try_module_get(THIS_MODULE)) |
1288 | return -EINVAL; | 1288 | return -EINVAL; |
1289 | 1289 | ||
1290 | /* Determine quirks */ | ||
1291 | usb_detect_quirks(udev); | ||
1292 | |||
1290 | err = usb_get_configuration(udev); | 1293 | err = usb_get_configuration(udev); |
1291 | if (err < 0) { | 1294 | if (err < 0) { |
1292 | dev_err(&udev->dev, "can't read configurations, error %d\n", | 1295 | dev_err(&udev->dev, "can't read configurations, error %d\n", |