net: dsa: felix: Handle PAUSE RX regardless of AN result
authorAlex Marginean <alexandru.marginean@nxp.com>
Thu, 16 Jan 2020 18:19:32 +0000 (20:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jan 2020 15:00:17 +0000 (16:00 +0100)
commitf3660937e17c6fcc3a9184dd7d5091110e7e9094
tree3625957f9e31a07a6f2b7931f6b7c2222f9bad5f
parent7f013edebaa4ea910bc88f324d24f6765435d644
net: dsa: felix: Handle PAUSE RX regardless of AN result

Flow control is used with 2500Base-X and AQR PHYs to do rate adaptation
between line side 100/1000 links and MAC running at 2.5G.

This is independent of the flow control configuration settled on line
side though AN.

In general, allowing the MAC to handle flow control even if not
negotiated with the link partner should not be a problem, so the patch
just enables it in all cases.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c