From: Thierry Reding Date: Thu, 6 Aug 2020 16:02:48 +0000 (+0200) Subject: usb: common: usb-conn-gpio: Print error on failure to get VBUS X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f06c206aadda5cb60d6c911d7ea5f15396b2008d;p=linux.git 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 Link: https://lore.kernel.org/r/20200806160248.3936771-2-thierry.reding@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/common/usb-conn-gpio.c b/drivers/usb/common/usb-conn-gpio.c index c5b516d327c77..6c4e3a19f42cb 100644 --- a/drivers/usb/common/usb-conn-gpio.c +++ b/drivers/usb/common/usb-conn-gpio.c @@ -206,7 +206,7 @@ static int usb_conn_probe(struct platform_device *pdev) if (IS_ERR(info->vbus)) { if (PTR_ERR(info->vbus) != -EPROBE_DEFER) - dev_err(dev, "failed to get vbus\n"); + dev_err(dev, "failed to get vbus: %ld\n", PTR_ERR(info->vbus)); return PTR_ERR(info->vbus); }