Skip to contentSkip to conversation

usb: ehci-omap: don't complain on -EPROBE_DEFER when no PHY found

PATCH New Ladislav Michl 1 participant 1 message Jan 18, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 usb: ehci-omap: don't complain on -EPROBE_DEFER when no PHY found

Don't complain on -EPROBE_DEFER when no PHY found, the driver probe will be retried later.

---
Changes:
- v2: None, just added Tony's ack
- v3: Fixed commit message typo spotted by Jaejoong Kim, added Roger's ack
- v4: Do not break printk string, Alan's ack. I hope he forgives me changing error message a bit. IMHO shorter with the same meaning. (this patch gained unbelievable lines_changed/versions ratio ;-))

 drivers/usb/host/ehci-omap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/usb/host/ehci-omap.c +2 -1
index 854b146a457d..8d8bafc70c1f 100644
@@ -167,7 +167,8 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
 				continue;
 
 			ret = PTR_ERR(phy);
-			dev_err(dev, "Can't get PHY device for port %d: %d\n",
+			if (ret != -EPROBE_DEFER)
+				dev_err(dev, "Can't get PHY for port %d: %d\n",
 					i, ret);
 			goto err_phy;
 		}
Signature · 5 lines
2.15.1
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html