net: macb: Disable PCS auto-negotiation for SGMII fixed-link mode
authorRobert Hancock <robert.hancock@calian.com>
Thu, 11 Mar 2021 20:18:13 +0000 (14:18 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Mar 2021 00:44:45 +0000 (16:44 -0800)
commite276e5e40e92582db3814d8b2b28150862c7a50f
tree3c051845c138271a8139e2438469eac87fada0fa
parent8fab174b78f74f10e4d900fe6da6c9047b0b35b5
net: macb: Disable PCS auto-negotiation for SGMII fixed-link mode

When using a fixed-link configuration in SGMII mode, it's not really
sensible to have auto-negotiation enabled since the link settings are
fixed by definition. In other configurations, such as an SGMII
connection to a PHY, it should generally be enabled.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c