Browse Source

zynq::eth: don't check_link_change if link already established

master
Astro 3 years ago
parent
commit
959bf8a245
  1. 6
      src/zynq/eth/mod.rs

6
src/zynq/eth/mod.rs

@ -507,6 +507,12 @@ impl<'r> EthInner<'r> {
fn check_link_change(&mut self, phy: &Phy) {
// As the PHY access takes some time, exit early if there was
// already a link. TODO: check once per second.
if self.link.is_some() {
return
}
let link = phy.get_link(self);
// Check link state transition

Loading…
Cancel
Save