summaryrefslogtreecommitdiff
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2014-02-27 10:57:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-28 16:20:17 -0800
commit938569eb75b329fee9f2634900ad7e12caf13fd2 (patch)
tree8841a0c426ae4c42583d7d81ef0d9f03a05a080f /drivers/usb/core
parentd1c5dd6f8edf16d2ed5a9a3d023b6f3f091cc42d (diff)
downloadlinux-938569eb75b329fee9f2634900ad7e12caf13fd2.tar.gz
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>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/hub.c6
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,
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);