commit | 8fab174b78f74f10e4d900fe6da6c9047b0b35b5 | [log] [tgz] |
---|---|---|
author | Robert Hancock <robert.hancock@calian.com> | Thu Mar 11 14:18:12 2021 -0600 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 12 16:44:45 2021 -0800 |
tree | 282d1fe6e9b89ca44417b109ecf7f4d4f804af79 | |
parent | c232f81b0a00f01c7dd1f888b806637c0d4b3d68 [diff] |
net: macb: poll for fixed link state in SGMII mode When using a fixed-link configuration with GEM in SGMII mode, such as for a chip-to-chip interconnect, the link state was always showing as established regardless of the actual connectivity state. We can monitor the pcs_link_state bit in the Network Status register to determine whether the PCS link state is actually up. Signed-off-by: Robert Hancock <robert.hancock@calian.com> Signed-off-by: David S. Miller <davem@davemloft.net>