net: dwc_eth_qos: Pass -1 to phy_connect() to scan for all PHYs
authorMarek Vasut <marex@denx.de>
Wed, 18 Dec 2019 06:48:50 +0000 (07:48 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 20 Dec 2019 16:02:12 +0000 (10:02 -0600)
commita9447c022de81b3e1842ae3d9af56fdf94952f26
tree3e589f63ee03799c4ea14ab5474d8f0682ed6f47
parent643366bcd5e32878a951e39b8b553b794695b026
net: dwc_eth_qos: Pass -1 to phy_connect() to scan for all PHYs

PHY address 0 is a valid PHY address, to scan for all PHYs, pass -1 to
phy_connect(). Passing 0 used to work before be accident, but does no
longer.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/dwc_eth_qos.c