mirror of https://gitee.com/openkylin/linux.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 <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
159b4e3385
commit
c10750b2be
|
@ -2653,7 +2653,7 @@ int usb_add_hcd(struct usb_hcd *hcd,
|
||||||
* should already have been reset (and boot firmware kicked off etc).
|
* should already have been reset (and boot firmware kicked off etc).
|
||||||
*/
|
*/
|
||||||
if (hcd->driver->reset && (retval = hcd->driver->reset(hcd)) < 0) {
|
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;
|
goto err_hcd_driver_setup;
|
||||||
}
|
}
|
||||||
hcd->rh_pollable = 1;
|
hcd->rh_pollable = 1;
|
||||||
|
|
Loading…
Reference in New Issue