phy: core: Fix phy_get() to not return error on link creation failure
authorKishon Vijay Abraham I <kishon@ti.com>
Tue, 18 Feb 2020 12:14:18 +0000 (17:44 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 19 Feb 2020 10:32:02 +0000 (16:02 +0530)
commit1d7cb11e1090526bc714cda98ca3484c3b30ff76
tree3157fe8b5b20c8fc24777d7b00ea8daa59f49e42
parent46b7edf1c7b7c91004c4db2c355cbd033f2385f9
phy: core: Fix phy_get() to not return error on link creation failure

commit 987351e1ea77 ("phy: core: Add consumer device link support")
added device link support between PHY consumer and PHY provider.
However certain peripherals (DWC3 ULPI) have cyclic dependency
between the PHY provider and PHY consumer causing the device link
creation to fail.

Instead of erroring out on failure to create device link, only add a
debug print to indicate device link creation failed to get USB
working again in multiple platforms.

Fixes: 987351e1ea77 ("phy: core: Add consumer device link support")
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Alexandre TORGUE <alexandre.torgue@st.com>
drivers/phy/phy-core.c