aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/amlogic
diff options
context:
space:
mode:
authorAnand Moon <linux.amoon@gmail.com>2021-08-17 09:45:40 +0530
committerVinod Koul <vkoul@kernel.org>2021-08-17 16:00:44 +0530
commitc7c4024348994208ac3bf85daf1a6195b7c5f7d3 (patch)
tree147620842cface2101b7b7cde14606e1f76cdafd /drivers/phy/amlogic
parentphy: amlogic: meson8b-usb2: Power off the PHY by putting it into reset mode (diff)
downloadlinux-dev-c7c4024348994208ac3bf85daf1a6195b7c5f7d3.tar.xz
linux-dev-c7c4024348994208ac3bf85daf1a6195b7c5f7d3.zip
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: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Anand Moon <linux.amoon@gmail.com> Link: https://lore.kernel.org/r/20210817041548.1276-7-linux.amoon@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/amlogic')
-rw-r--r--drivers/phy/amlogic/phy-meson8b-usb2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c
index 2aad45c55494..cf10bed40528 100644
--- a/drivers/phy/amlogic/phy-meson8b-usb2.c
+++ b/drivers/phy/amlogic/phy-meson8b-usb2.c
@@ -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);