Skip to content

Commit

Permalink
phy: fsl-imx8mq-usb: add dev_err_probe if getting vbus failed
Browse files Browse the repository at this point in the history
This adds an error message if getting vbus failed for some reason,
-EPROBE_DEFER is handled appropriately as well and adds a nice
information to debugfs.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20230816080256.611380-1-alexander.stein@ew.tq-group.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Alexander Stein authored and Vinod Koul committed Aug 22, 2023
1 parent 08e49af commit 9f266c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/phy/freescale/phy-fsl-imx8mq-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev)

imx_phy->vbus = devm_regulator_get(dev, "vbus");
if (IS_ERR(imx_phy->vbus))
return PTR_ERR(imx_phy->vbus);
return dev_err_probe(dev, PTR_ERR(imx_phy->vbus), "failed to get vbus\n");

phy_set_drvdata(imx_phy->phy, imx_phy);

Expand Down

0 comments on commit 9f266c1

Please sign in to comment.