Skip to content

Commit c7c4024

Browse files
moonlinuxvinodkoul
authored andcommitted
phy: amlogic: meson8b-usb2: don't log an error on -EPROBE_DEFER
devm_phy_create can return -EPROBE_DEFER if the vbus-supply is not ready yet. Silence this warning as the driver framework will re-attempt registering the PHY. Use dev_err_probe() for phy resources to indicate the deferral reason when waiting for the resource to come up. Cc: Martin Blumenstingl <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> Signed-off-by: Anand Moon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e1f31c9 commit c7c4024

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/phy/amlogic/phy-meson8b-usb2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev)
277277

278278
phy = devm_phy_create(&pdev->dev, NULL, &phy_meson8b_usb2_ops);
279279
if (IS_ERR(phy)) {
280-
dev_err(&pdev->dev, "failed to create PHY\n");
281-
return PTR_ERR(phy);
280+
return dev_err_probe(&pdev->dev, PTR_ERR(phy),
281+
"failed to create PHY\n");
282282
}
283283

284284
phy_set_drvdata(phy, priv);

0 commit comments

Comments
 (0)