net: phy: micrel: add Asym Pause workaround for KSZ9021
Subsystems (3)
PATCH 1/1 net: phy: micrel: add Asym Pause workaround for KSZ9021
From: Hans Andersson <[email protected]>
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.
--- drivers/net/phy/micrel.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/phy/micrel.c +3 -0
@@ -763,6 +763,8 @@ static int ksz9031_get_features(struct phy_device *phydev)* Whenever the device's Asymmetric Pause capability is set to 1, * link-up may fail after a link-up to link-down transition. * +* The Errata Sheet is for ksz9031, but ksz9021 has the same issue +* * Workaround: * Do not enable the Asymmetric Pause capability bit. */
@@ -1076,6 +1078,7 @@ static struct phy_driver ksphy_driver[] = {/* PHY_GBIT_FEATURES */ .driver_data = &ksz9021_type, .probe = kszphy_probe, + .get_features = ksz9031_get_features, .config_init = ksz9021_config_init, .ack_interrupt = kszphy_ack_interrupt, .config_intr = kszphy_config_intr,
Signature · 1 line
2.17.1
Quoted 11 lines · Hans Andersson
From: Hans Andersson <[email protected]>
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.
Signed-off-by Hans Andersson <[email protected]>
This is not the best fixes: tag, since it was not that change which broke it. But going further back will be hard.
Andrew
PATCH v2 1/1 net: phy: micrel: add Asym Pause workaround for KSZ9021
From: Hans Andersson <[email protected]>
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.
--- drivers/net/phy/micrel.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/phy/micrel.c +3 -0
@@ -763,6 +763,8 @@ static int ksz9031_get_features(struct phy_device *phydev)* Whenever the device's Asymmetric Pause capability is set to 1, * link-up may fail after a link-up to link-down transition. * +* The Errata Sheet is for ksz9031, but ksz9021 has the same issue +* * Workaround: * Do not enable the Asymmetric Pause capability bit. */
@@ -1076,6 +1078,7 @@ static struct phy_driver ksphy_driver[] = {/* PHY_GBIT_FEATURES */ .driver_data = &ksz9021_type, .probe = kszphy_probe, + .get_features = ksz9031_get_features, .config_init = ksz9021_config_init, .ack_interrupt = kszphy_ack_interrupt, .config_intr = kszphy_config_intr,
Signature · 1 line
2.21.0.windows.1
Quoted 7 lines · Hans Andersson
From: Hans Andersson <[email protected]>
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.
Quoted 6 lines
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 <[email protected]>Reviewed-by Andrew Lunn <[email protected]>
Signature · 1 line
Florian
David Miller
maintainerFrom: Hans Andersson <[email protected]>
Date: Thu, 26 Sep 2019 09:54:37 +0200
Quoted 11 lines
From: Hans Andersson <[email protected]>
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.
Signed-off-by Hans Andersson <[email protected]>
Applied and queued up for -stable.