From a42e5a95ffa77912dcac54ceb5a8b65ca7ce92ba Mon Sep 17 00:00:00 2001 From: topquark12 Date: Mon, 5 Jul 2021 13:25:22 +0800 Subject: [PATCH] phy: fix issue 78, scan PHY MDIO addr starting at 0 --- libboard_zynq/src/eth/phy/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libboard_zynq/src/eth/phy/mod.rs b/libboard_zynq/src/eth/phy/mod.rs index e4639bb..ac41732 100644 --- a/libboard_zynq/src/eth/phy/mod.rs +++ b/libboard_zynq/src/eth/phy/mod.rs @@ -51,7 +51,7 @@ mod phy_impl { impl Phy { /// Probe all addresses on MDIO for a known PHY pub fn find(pa: &mut PA) -> Option { - (1..32).find(|addr| { + (0..32).find(|addr| { match identify_phy(pa, *addr) { Some(PhyIdentifier { oui: OUI_MARVELL,