From: Mark Brown Date: Wed, 7 Aug 2013 21:32:40 +0000 (+0100) Subject: usb/hcd: Log error code if reset() fails X-Git-Tag: v3.12-rc1~186^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c10750b2bee7677fe76c97c53e079937802dc68c;p=profile%2Fivi%2Fkernel-x86-ivi.git usb/hcd: Log error code if reset() fails If someone provided meaningful error codes from reset() we should tell the user what they were. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 0ffe016..5aa1d13 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2653,7 +2653,7 @@ int usb_add_hcd(struct usb_hcd *hcd, * should already have been reset (and boot firmware kicked off etc). */ if (hcd->driver->reset && (retval = hcd->driver->reset(hcd)) < 0) { - dev_err(hcd->self.controller, "can't setup\n"); + dev_err(hcd->self.controller, "can't setup: %d\n", retval); goto err_hcd_driver_setup; } hcd->rh_pollable = 1;