phy: amlogic: meson8b-usb2: don't log an error on -EPROBE_DEFER
authorAnand Moon <linux.amoon@gmail.com>
Tue, 17 Aug 2021 04:15:40 +0000 (09:45 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 17 Aug 2021 10:30:44 +0000 (16:00 +0530)
commitc7c4024348994208ac3bf85daf1a6195b7c5f7d3
tree147620842cface2101b7b7cde14606e1f76cdafd
parente1f31c93a8d292f2e5b17daa384feaa28453f25e
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>
drivers/phy/amlogic/phy-meson8b-usb2.c