Commit c7c40243 authored by Anand Moon's avatar Anand Moon Committed by Vinod Koul
Browse files

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 <martin.blumenstingl@googlemail.com>
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarAnand Moon <linux.amoon@gmail.com>
Link: https://lore.kernel.org/r/20210817041548.1276-7-linux.amoon@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent e1f31c93
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -277,8 +277,8 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev)

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

	phy_set_drvdata(phy, priv);