projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c5dd6
)
hub: debug message for failing to enable device
author
Oliver Neukum
<oneukum@suse.de>
Thu, 27 Feb 2014 09:57:10 +0000
(10:57 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 1 Mar 2014 00:20:17 +0000
(16:20 -0800)
This error case isn't reported during enumeration.
Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/hub.c
b/drivers/usb/core/hub.c
index 519f2c3594b222a478ea9ff2856deb4c17850ed4..69687de9de6732f45e038287fe1ee72e7d06578a 100644
(file)
--- a/
drivers/usb/core/hub.c
+++ b/
drivers/usb/core/hub.c
@@
-4111,8
+4111,12
@@
hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
did_new_scheme = true;
retval = hub_enable_device(udev);
- if (retval < 0)
+ if (retval < 0) {
+ dev_err(&udev->dev,
+ "hub failed to enable device, error %d\n",
+ retval);
goto fail;
+ }
#define GET_DESCRIPTOR_BUFSIZE 64
buf = kmalloc(GET_DESCRIPTOR_BUFSIZE, GFP_NOIO);