net: phy: micrel: add Asym Pause workaround for KSZ9021
authorHans Andersson <hans.andersson@cellavision.se>
Thu, 26 Sep 2019 07:54:37 +0000 (09:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 18:27:26 +0000 (20:27 +0200)
commit407d8098cb1ab338199f4753162799a488d87d23
treefdae4189240b8df288ec16d52c21d7dcc36d35c2
parentfd4a8093ec0bd37d450587d50f3e10f0af57cc47
net: phy: micrel: add Asym Pause workaround for KSZ9021

The Micrel KSZ9031 PHY may fail to establish a link when the Asymmetric
Pause capability is set. This issue is described in a Silicon Errata
(DS80000691D or DS80000692D), which advises to always disable the
capability.

Micrel KSZ9021 has no errata, but has the same issue with Asymmetric Pause.
This patch apply the same workaround as the one for KSZ9031.

Fixes: 3aed3e2a143c ("net: phy: micrel: add Asym Pause workaround")
Signed-off-by: Hans Andersson <hans.andersson@cellavision.se>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c