aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-4.4/126-phy-marvell-88E1512-add-flow-control-support.patch
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-09-29 12:16:51 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-09-29 13:47:18 +0200
commit4aa5d3e60d6007809a4b7fac9959645ef1600cf9 (patch)
tree7cb22196cbe77fccaec11c5606900a3713313225 /target/linux/mvebu/patches-4.4/126-phy-marvell-88E1512-add-flow-control-support.patch
parenta454756c913060977fd826ed421b9c7cfca3372e (diff)
downloadupstream-4aa5d3e60d6007809a4b7fac9959645ef1600cf9.tar.gz
upstream-4aa5d3e60d6007809a4b7fac9959645ef1600cf9.tar.bz2
upstream-4aa5d3e60d6007809a4b7fac9959645ef1600cf9.zip
mvebu: add support for SFP
Add patches for SFP support and package it for ClearFog. Tested with a Juniper SFP module. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Acked-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mvebu/patches-4.4/126-phy-marvell-88E1512-add-flow-control-support.patch')
-rw-r--r--target/linux/mvebu/patches-4.4/126-phy-marvell-88E1512-add-flow-control-support.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/mvebu/patches-4.4/126-phy-marvell-88E1512-add-flow-control-support.patch b/target/linux/mvebu/patches-4.4/126-phy-marvell-88E1512-add-flow-control-support.patch
new file mode 100644
index 0000000000..e731c4ddf5
--- /dev/null
+++ b/target/linux/mvebu/patches-4.4/126-phy-marvell-88E1512-add-flow-control-support.patch
@@ -0,0 +1,26 @@
+From 5eed0bf3bc3e69b20a13d8ffcdf97cb720391637 Mon Sep 17 00:00:00 2001
+From: Russell King <rmk+kernel@arm.linux.org.uk>
+Date: Thu, 1 Oct 2015 00:34:08 +0100
+Subject: [PATCH 735/744] phy: marvell: 88E1512: add flow control support
+
+The Marvell PHYs support pause frame advertisments, so we should not be
+masking their support off. Add the necessary flag to the Marvell PHY
+to allow any MAC level pause frame support to be advertised.
+
+Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
+Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
+---
+ drivers/net/phy/marvell.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/net/phy/marvell.c
++++ b/drivers/net/phy/marvell.c
+@@ -1142,7 +1142,7 @@ static struct phy_driver marvell_drivers
+ .phy_id = MARVELL_PHY_ID_88E1510,
+ .phy_id_mask = MARVELL_PHY_ID_MASK,
+ .name = "Marvell 88E1510",
+- .features = PHY_GBIT_FEATURES,
++ .features = PHY_GBIT_FEATURES | SUPPORTED_Pause,
+ .flags = PHY_HAS_INTERRUPT,
+ .config_aneg = &m88e1510_config_aneg,
+ .read_status = &marvell_read_status,