mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
2d02a4f5bd
Refresh patches. Adapt 704-phy-no-genphy-soft-reset.patch. Remove brcm2708/950-0005-mm-Remove-the-PFN-busy-warning.patch. Compile-tested on brcm2708/bcm2708 and x86/64. Runtime-tested on brcm2708/bcm2708 and x86/64. Fixes the following vulnerabilities: - CVE-2017-7533 - CVE-2017-1000111 - CVE-2017-1000112 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
22 lines
854 B
Diff
22 lines
854 B
Diff
From: Russell King <rmk+kernel@armlinux.org.uk>
|
|
Date: Thu, 5 Jan 2017 09:34:42 +0000
|
|
Subject: [PATCH] net: phy: allow EEE with SGMII interface modes
|
|
|
|
As EEE is able to work in SGMII mode as well, add it to the list of
|
|
permissable EEE modes that phy_init_eee() will accept. This is
|
|
necessary so that EEE can work with an 88E1512 connected in SGMII mode.
|
|
|
|
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
|
|
---
|
|
|
|
--- a/drivers/net/phy/phy.c
|
|
+++ b/drivers/net/phy/phy.c
|
|
@@ -1239,6 +1239,7 @@ int phy_init_eee(struct phy_device *phyd
|
|
if ((phydev->duplex == DUPLEX_FULL) &&
|
|
((phydev->interface == PHY_INTERFACE_MODE_MII) ||
|
|
(phydev->interface == PHY_INTERFACE_MODE_GMII) ||
|
|
+ phydev->interface == PHY_INTERFACE_MODE_SGMII ||
|
|
phy_interface_is_rgmii(phydev) ||
|
|
phy_is_internal(phydev))) {
|
|
int eee_lp, eee_cap, eee_adv;
|