diff options
author | Oliver Neukum <oneukum@suse.de> | 2014-02-27 04:57:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-28 19:20:17 -0500 |
commit | 938569eb75b329fee9f2634900ad7e12caf13fd2 (patch) | |
tree | 8841a0c426ae4c42583d7d81ef0d9f03a05a080f | |
parent | d1c5dd6f8edf16d2ed5a9a3d023b6f3f091cc42d (diff) |
hub: debug message for failing to enable device
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>
-rw-r--r-- | drivers/usb/core/hub.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 519f2c3594b2..69687de9de67 100644 --- 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, | |||
4111 | 4111 | ||
4112 | did_new_scheme = true; | 4112 | did_new_scheme = true; |
4113 | retval = hub_enable_device(udev); | 4113 | retval = hub_enable_device(udev); |
4114 | if (retval < 0) | 4114 | if (retval < 0) { |
4115 | dev_err(&udev->dev, | ||
4116 | "hub failed to enable device, error %d\n", | ||
4117 | retval); | ||
4115 | goto fail; | 4118 | goto fail; |
4119 | } | ||
4116 | 4120 | ||
4117 | #define GET_DESCRIPTOR_BUFSIZE 64 | 4121 | #define GET_DESCRIPTOR_BUFSIZE 64 |
4118 | buf = kmalloc(GET_DESCRIPTOR_BUFSIZE, GFP_NOIO); | 4122 | buf = kmalloc(GET_DESCRIPTOR_BUFSIZE, GFP_NOIO); |