kernel: update 4.9 to 4.9.44
[openwrt/staging/wigyori.git] / target / linux / generic / pending-4.9 / 704-phy-no-genphy-soft-reset.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: net: phy: disable soft-reset for generic PHY devices to avoid accidentally clearing preinitialized state
3
4 Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 ---
6 drivers/net/phy/phy_device.c | 6 +++---
7 1 file changed, 3 insertions(+), 3 deletions(-)
8
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
12 return 0;
13 }
14
15 -static int gen10g_soft_reset(struct phy_device *phydev)
16 -{
17 - /* Do nothing for now */
18 - return 0;
19 -}
20 EXPORT_SYMBOL(genphy_config_init);
21
22 static int gen10g_config_init(struct phy_device *phydev)
23 @@ -1811,7 +1806,7 @@ static struct phy_driver genphy_driver[]
24 .phy_id = 0xffffffff,
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,
30 .features = 0,
31 .config_aneg = gen10g_config_aneg,