From: Oliver Neukum Date: Thu, 27 Feb 2014 09:57:10 +0000 (+0100) Subject: hub: debug message for failing to enable device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=938569eb75b329fee9f2634900ad7e12caf13fd2;p=openwrt%2Fstaging%2Fblogic.git hub: debug message for failing to enable device This error case isn't reported during enumeration. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- 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);