OSDN Git Service

phy: amlogic: phy-meson-gxl-usb2: don't log an error on -EPROBE_DEFER
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 28 Jan 2018 20:22:44 +0000 (21:22 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 8 Mar 2018 08:26:26 +0000 (13:56 +0530)
commitcba1372812fbc740e57c1982970210ab2b804226
tree1b248f6e04c06557d5962643da8705a1f86e449a
parentd2eced94562f9d69705887e497fee0d17c3099eb
phy: amlogic: phy-meson-gxl-usb2: don't log an error on -EPROBE_DEFER

devm_phy_create can return -EPROBE_DEFER if the phy-supply is not ready
yet. Silence this warning as the driver framework will re-attempt
registering the PHY - this second try works without any errors. So only
log actual errors to keep the kernel log free of misleading error
messages.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/amlogic/phy-meson-gxl-usb2.c