Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: fsl-imx8mq-usb: add dev_err_probe if getting vbus failed

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>

authored by

Alexander Stein and committed by
Vinod Koul
9f266c1c 08e49af5

+1 -1
+1 -1
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
··· 394 394 395 395 imx_phy->vbus = devm_regulator_get(dev, "vbus"); 396 396 if (IS_ERR(imx_phy->vbus)) 397 - return PTR_ERR(imx_phy->vbus); 397 + return dev_err_probe(dev, PTR_ERR(imx_phy->vbus), "failed to get vbus\n"); 398 398 399 399 phy_set_drvdata(imx_phy->phy, imx_phy); 400 400