]> err.no Git - linux-2.6/commitdiff
USB: log an error message when USB enumeration fails
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 10 Apr 2008 16:45:34 +0000 (12:45 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:50 +0000 (21:16 -0700)
This patch (as1077) logs an error message whenever the kernel is
unable to enumerate a new USB device.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c

index 9fc5179dfc60741e9659ec130db92b28f2740944..1e23e360ea91fec68a24aeda683ab1d8d19c0601 100644 (file)
@@ -2708,6 +2708,7 @@ loop:
                if ((status == -ENOTCONN) || (status == -ENOTSUPP))
                        break;
        }
+       dev_err(hub_dev, "unable to enumerate USB device on port %d\n", port1);
  
 done:
        hub_port_disable(hub, port1, 1);