1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: net: phy: disable soft-reset for generic PHY devices to avoid accidentally clearing preinitialized state
4 Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 drivers/net/phy/phy_device.c | 6 +++---
7 1 file changed, 3 insertions(+), 3 deletions(-)
9 --- a/drivers/net/phy/phy_device.c
10 +++ b/drivers/net/phy/phy_device.c
11 @@ -1524,11 +1524,6 @@ int genphy_config_init(struct phy_device
15 -static int gen10g_soft_reset(struct phy_device *phydev)
17 - /* Do nothing for now */
20 EXPORT_SYMBOL(genphy_config_init);
22 static int gen10g_config_init(struct phy_device *phydev)
23 @@ -1811,7 +1806,7 @@ static struct phy_driver genphy_driver[]
25 .phy_id_mask = 0xffffffff,
26 .name = "Generic 10G PHY",
27 - .soft_reset = gen10g_soft_reset,
28 + .soft_reset = genphy_no_soft_reset,
29 .config_init = gen10g_config_init,
31 .config_aneg = gen10g_config_aneg,