lan743x: Expand phy search for LAN7431
authorBryan Whitehead <Bryan.Whitehead@microchip.com>
Mon, 17 Dec 2018 21:44:50 +0000 (16:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 08:51:02 +0000 (09:51 +0100)
commitc26419f3574e7944460af45cab9945461e7a5884
treeb80f1427fea5e05eb4579821b54be75fe11960a4
parent98876c46efd0cda22eabc15187fca86ca056d4f5
lan743x: Expand phy search for LAN7431

[ Upstream commit 0db7d253e9f0ff1a41c602429bea93df221be6ed ]

The LAN7431 uses an external phy, and it can be found anywhere in
the phy address space. This patch uses phy address 1 for LAN7430
only. And searches all addresses otherwise.

Signed-off-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/microchip/lan743x_main.c