Skip to content

Commit 09c33e0

Browse files
gclementcristibirsan
authored andcommitted
net: phy: micrel: Fix link-up failure at boot time
At boot time the link not come up if it was not already set by U-Boot. The cable needed to be unplugged and then plugged again to make the link come up. This issue is caused by the Micrel KSZ9031 PHY which may fail to establish a link when the Asymmetric Pause capability is set, as described in a Silicon Errata (DS80000691D or DS80000692D), which advises to always disable the capability. This was fixed in mainline by 3aed3e2 ("net: phy: micrel: add Asym Pause workaround"). But this patch doesn't apply on a 4.19 kernel and need to be adapted to the old framework. Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
1 parent 8b46595 commit 09c33e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/micrel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ static struct phy_driver ksphy_driver[] = {
973973
.phy_id = PHY_ID_KSZ9031,
974974
.phy_id_mask = MICREL_PHY_ID_MASK,
975975
.name = "Micrel KSZ9031 Gigabit PHY",
976-
.features = PHY_GBIT_FEATURES,
976+
.features = PHY_GBIT_FEATURES | SUPPORTED_Pause,
977977
.flags = PHY_HAS_INTERRUPT,
978978
.driver_data = &ksz9021_type,
979979
.probe = kszphy_probe,

0 commit comments

Comments
 (0)