net: amd-xgbe: Check only the minimum speed for active/passive cables
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 8 Dec 2022 16:22:25 +0000 (10:22 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Dec 2022 10:05:36 +0000 (10:05 +0000)
commitf8ab263d4d48e6dab752029bf562f20a2ee630ed
treed3b2f286b39b43fbaadd4983267554ab7e9687b1
parent4998006c73afe44e2f639d55bd331c6c26eb039f
net: amd-xgbe: Check only the minimum speed for active/passive cables

There are cables that exist that can support speeds in excess of 10GbE.
The driver, however, restricts the EEPROM advertised nominal bitrate to
a specific range, which can prevent usage of cables that can support,
for example, up to 25GbE.

Rather than checking that an active or passive cable supports a specific
range, only check for a minimum supported speed.

Fixes: abf0a1c2b26a ("amd-xgbe: Add support for SFP+ modules")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c