sdk_dpaa: memac: fix AQR autoneg to lower than 10G partners
authorCamelia Groza <camelia.groza@nxp.com>
Tue, 24 Nov 2020 11:08:35 +0000 (13:08 +0200)
committerXiaobo Xie <xiaobo.xie@nxp.com>
Tue, 8 Jun 2021 05:01:47 +0000 (07:01 +0200)
commitac3c3de2ff287a31ea32e135ca889af339d3926d
treec24ce9de9c6ce5fc0ec5b4eaf278d5ccfa2ee825
parentb69fcc089c65e79d770e1ffcbcc43e1ec2170c70
sdk_dpaa: memac: fix AQR autoneg to lower than 10G partners

Stop removing unsupported system side modes with AQR PHYs. Originally,
their removal didn't impact the modes advertised by the PHY. Since
auto-negotiation support was added to the aquantia driver, the
unsupported modes were no longer advertised. This prohibited the
PHY from negotiating with 1G link partners on LS1046ARDB.

Patch adapted from similar fix for the upstream DPAA1 Ethernet driver:
commit fddb5a50801a ("dpaa_eth: support all modes with rate adapting PHYs")

Aquantia auto-negotiation:
commit 09c4c57f7bc4 ("net: phy: aquantia: add support for auto-negotiation
configuration")

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
drivers/net/ethernet/freescale/sdk_dpaa/mac-api.c