diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-07 21:32:40 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 20:13:32 (GMT) |
commit | c10750b2bee7677fe76c97c53e079937802dc68c (patch) | |
tree | 95dbabe49a7eecae376005b97eee7b0576bc3423 /drivers | |
parent | 159b4e3385dbeff6d64caddd9570bde1e8f857f6 (diff) | |
download | linux-fsl-qoriq-c10750b2bee7677fe76c97c53e079937802dc68c.tar.xz |
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 <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |