public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] usb: gadget: tegra-xudc: Don't print error on probe deferral
@ 2021-05-19 16:35 Jon Hunter
  2021-05-19 16:35 ` [PATCH 2/2] usb: gadget: tegra-xudc: Use dev_err_probe() Jon Hunter
  2021-06-03  6:22 ` [PATCH 1/2] usb: gadget: tegra-xudc: Don't print error on probe deferral Felipe Balbi
  0 siblings, 2 replies; 4+ messages in thread
From: Jon Hunter @ 2021-05-19 16:35 UTC (permalink / raw)
  To: Felipe Balbi, Greg Kroah-Hartman, Thierry Reding
  Cc: linux-usb, linux-tegra, Jon Hunter

The Tegra XUDC driver prints the following error when deferring probe
if the USB PHY is not found ...

 ERR KERN tegra-xudc 3550000.usb: failed to get usbphy-0: -517

Deferring probe can be normal and so update to driver to avoid printing
this error if probe is being deferred.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 drivers/usb/gadget/udc/tegra-xudc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c
index 2319c9737c2b..a62bf095954b 100644
--- a/drivers/usb/gadget/udc/tegra-xudc.c
+++ b/drivers/usb/gadget/udc/tegra-xudc.c
@@ -3520,8 +3520,8 @@ static int tegra_xudc_phy_get(struct tegra_xudc *xudc)
 						&xudc->vbus_nb);
 			if (IS_ERR(xudc->usbphy[i])) {
 				err = PTR_ERR(xudc->usbphy[i]);
-				dev_err(xudc->dev, "failed to get usbphy-%d: %d\n",
-					i, err);
+				dev_err_probe(xudc->dev, err,
+					      "failed to get usbphy-%d\n", i);
 				goto clean_up;
 			}
 		} else if (!xudc->utmi_phy[i]) {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-03  6:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-19 16:35 [PATCH 1/2] usb: gadget: tegra-xudc: Don't print error on probe deferral Jon Hunter
2021-05-19 16:35 ` [PATCH 2/2] usb: gadget: tegra-xudc: Use dev_err_probe() Jon Hunter
2021-06-03  6:22   ` Felipe Balbi
2021-06-03  6:22 ` [PATCH 1/2] usb: gadget: tegra-xudc: Don't print error on probe deferral Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox