dropbear: add option to set receive window size
[openwrt/staging/chunkeey.git] / target / linux / pistachio / patches-4.9 / 701-net-micrel-Disable-PME.patch
1 From 5e84aec87108e0481af7495a1e9a9953d8590d70 Mon Sep 17 00:00:00 2001
2 From: Xue Liu <liuxuenetmail@gmail.com>
3 Date: Mon, 6 Feb 2017 17:43:19 +0000
4 Subject: net: micrel: Disable PME
5
6 Disable PME for Micrel phy driver allowing the Ethernet ports LED
7 driver to work on marduk platform.
8
9 Signed-off-by: Xue Liu <liuxuenetmail@gmail.com>
10 ---
11 drivers/net/phy/micrel.c | 6 ++++++
12 1 file changed, 6 insertions(+)
13
14 --- a/drivers/net/phy/micrel.c
15 +++ b/drivers/net/phy/micrel.c
16 @@ -273,6 +273,7 @@ static int kszphy_config_init(struct phy
17 struct kszphy_priv *priv = phydev->priv;
18 const struct kszphy_type *type;
19 int ret;
20 + int temp = 0;
21
22 if (!priv)
23 return 0;
24 @@ -308,6 +309,11 @@ static int kszphy_config_init(struct phy
25 return ret;
26 }
27
28 + /* disable PME */
29 + temp = phy_read(phydev, 0x16);
30 + temp &= ~(1 << 15);
31 + phy_write(phydev, 0x16, temp);
32 +
33 return 0;
34 }
35