Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: common: usb-conn-gpio: Print error on failure to get VBUS

The exact error that happened trying to get the VBUS supply can be
useful to troubleshoot what's going on.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200806160248.3936771-2-thierry.reding@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thierry Reding and committed by
Greg Kroah-Hartman
f06c206a 4ddf1ac7

+1 -1
+1 -1
drivers/usb/common/usb-conn-gpio.c
··· 206 206 207 207 if (IS_ERR(info->vbus)) { 208 208 if (PTR_ERR(info->vbus) != -EPROBE_DEFER) 209 - dev_err(dev, "failed to get vbus\n"); 209 + dev_err(dev, "failed to get vbus: %ld\n", PTR_ERR(info->vbus)); 210 210 return PTR_ERR(info->vbus); 211 211 } 212 212