]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa_eth: support all modes with rate adapting PHYs
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Tue, 4 Feb 2020 10:08:58 +0000 (12:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2020 13:27:25 +0000 (14:27 +0100)
commit74337d8e8de6f3fc8e0d3f079b5bd8bb66b9063f
tree5e264c4b96fd26fdf45bfd65f917124abc8bfcb2
parentc933c099aa5b9b5ee77479eb0015f4ff9974f7a1
dpaa_eth: support all modes with rate adapting PHYs

Stop removing modes that are not supported on the system interface
when the connected PHY is capable of rate adaptation. This addresses
an issue with the LS1046ARDB board 10G interface no longer working
with an 1G link partner after autonegotiation support was added
for the Aquantia PHY on board in

commit a264b1e21123 ("net: phy: aquantia: add support for auto-negotiation configuration")

Before this commit the values advertised by the PHY were not
influenced by the dpaa_eth driver removal of system-side unsupported
modes as the aqr_config_aneg() was basically a no-op. After this
commit, the modes removed by the dpaa_eth driver were no longer
advertised thus autonegotiation with 1G link partners failed.

Reported-by: Mian Yousaf Kaukab <ykaukab@suse.de>
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c