kernel: split patches folder up into backport, pending and hack folders
[openwrt/openwrt.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 diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
10 index c37d3a27e372..069f7ee3e65c 100644
11 --- a/drivers/net/phy/phy_device.c
12 +++ b/drivers/net/phy/phy_device.c
13 @@ -1482,7 +1482,7 @@ int genphy_config_init(struct phy_device *phydev)
14 return 0;
15 }
16
17 -static int gen10g_soft_reset(struct phy_device *phydev)
18 +static int no_soft_reset(struct phy_device *phydev)
19 {
20 /* Do nothing for now */
21 return 0;
22 @@ -1721,7 +1721,7 @@ static struct phy_driver genphy_driver[] = {
23 .phy_id = 0xffffffff,
24 .phy_id_mask = 0xffffffff,
25 .name = "Generic PHY",
26 - .soft_reset = genphy_soft_reset,
27 + .soft_reset = no_soft_reset,
28 .config_init = genphy_config_init,
29 .features = PHY_GBIT_FEATURES | SUPPORTED_MII |
30 SUPPORTED_AUI | SUPPORTED_FIBRE |
31 @@ -1735,7 +1735,7 @@ static struct phy_driver genphy_driver[] = {
32 .phy_id = 0xffffffff,
33 .phy_id_mask = 0xffffffff,
34 .name = "Generic 10G PHY",
35 - .soft_reset = gen10g_soft_reset,
36 + .soft_reset = no_soft_reset,
37 .config_init = gen10g_config_init,
38 .features = 0,
39 .config_aneg = gen10g_config_aneg,
40 --
41 2.11.0
42