MIPS: MTX-1: Make au1000_eth probe all PHY addresses
authorFlorian Fainelli <florian@openwrt.org>
Sun, 27 Feb 2011 18:53:53 +0000 (19:53 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:47:01 +0000 (12:47 -0400)
commita1cc1e7db2a38908e0e1f14ae7ba6d430bdbba47
treea2f19d135c1d5d19fbde1f0f7ce863b19e5fe4e9
parent1934efbaa9c48febf9770b7c8ea3522403c55d15
MIPS: MTX-1: Make au1000_eth probe all PHY addresses

commit bf3a1eb85967dcbaae42f4fcb53c2392cec32677 upstream.

When au1000_eth probes the MII bus for PHY address, if we do not set
au1000_eth platform data's phy_search_highest_address, the MII probing
logic will exit early and will assume a valid PHY is found at address 0.
For MTX-1, the PHY is at address 31, and without this patch, the link
detection/speed/duplex would not work correctly.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2111/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/mips/alchemy/mtx-1/platform.c