ath79: ag71xx: defer probe if of_phy_connect failed
authorChuanhong Guo <gch981213@gmail.com>
Fri, 10 May 2019 14:17:28 +0000 (22:17 +0800)
committerPetr Štetiar <ynezz@true.cz>
Wed, 5 Jun 2019 08:12:31 +0000 (10:12 +0200)
commit32817580e79bb129e5ea78285109c6119ff40fd0
treeba7b6c8161bed14faae3b871f1cf5c1b11bd2e47
parentf84715d463e63bd8c6fa873a9183b418ff24eeb5
ath79: ag71xx: defer probe if of_phy_connect failed

gmac0 may need a phy on builtin switch, which can be unavailable
if gmac0 is probed before builtin switch.
Return -EPROBE_DEFER in this case so that gmac0 can be probed
later.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c