diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-02-13 11:02:06 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-04-12 09:51:34 +0200 |
commit | 51397d7d95d9f5e210a5557f65de1fa21e6f5921 (patch) | |
tree | 0aee85f945fa4dc3e861c48dbf981d71a48cde92 /target/linux/mvebu/patches-4.4/030-mvneta-consolidate-autoneg-enabling.patch | |
parent | fc28830b6f0cd5fe9650d6c9cc750e19665d3a59 (diff) | |
download | upstream-51397d7d95d9f5e210a5557f65de1fa21e6f5921.tar.gz upstream-51397d7d95d9f5e210a5557f65de1fa21e6f5921.tar.bz2 upstream-51397d7d95d9f5e210a5557f65de1fa21e6f5921.zip |
mvebu: remove linux 4.4 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mvebu/patches-4.4/030-mvneta-consolidate-autoneg-enabling.patch')
-rw-r--r-- | target/linux/mvebu/patches-4.4/030-mvneta-consolidate-autoneg-enabling.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/target/linux/mvebu/patches-4.4/030-mvneta-consolidate-autoneg-enabling.patch b/target/linux/mvebu/patches-4.4/030-mvneta-consolidate-autoneg-enabling.patch deleted file mode 100644 index 1d98c7decc..0000000000 --- a/target/linux/mvebu/patches-4.4/030-mvneta-consolidate-autoneg-enabling.patch +++ /dev/null @@ -1,55 +0,0 @@ -From: Stas Sergeev <stsp@list.ru> -Date: Wed, 2 Dec 2015 20:33:56 +0300 -Subject: [PATCH] mvneta: consolidate autoneg enabling - -This moves autoneg-related bit manipulations to the single place. - -CC: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> -CC: netdev@vger.kernel.org -CC: linux-kernel@vger.kernel.org - -Signed-off-by: Stas Sergeev <stsp@users.sourceforge.net> -Signed-off-by: David S. Miller <davem@davemloft.net> ---- - ---- a/drivers/net/ethernet/marvell/mvneta.c -+++ b/drivers/net/ethernet/marvell/mvneta.c -@@ -1067,15 +1067,28 @@ static void mvneta_defaults_set(struct m - MVNETA_GMAC_AN_SPEED_EN | - MVNETA_GMAC_AN_DUPLEX_EN; - mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val); -+ - val = mvreg_read(pp, MVNETA_GMAC_CLOCK_DIVIDER); - val |= MVNETA_GMAC_1MS_CLOCK_ENABLE; - mvreg_write(pp, MVNETA_GMAC_CLOCK_DIVIDER, val); -+ -+ val = mvreg_read(pp, MVNETA_GMAC_CTRL_2); -+ val |= MVNETA_GMAC2_INBAND_AN_ENABLE; -+ mvreg_write(pp, MVNETA_GMAC_CTRL_2, val); - } else { - val = mvreg_read(pp, MVNETA_GMAC_AUTONEG_CONFIG); - val &= ~(MVNETA_GMAC_INBAND_AN_ENABLE | - MVNETA_GMAC_AN_SPEED_EN | - MVNETA_GMAC_AN_DUPLEX_EN); - mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val); -+ -+ val = mvreg_read(pp, MVNETA_GMAC_CLOCK_DIVIDER); -+ val &= ~MVNETA_GMAC_1MS_CLOCK_ENABLE; -+ mvreg_write(pp, MVNETA_GMAC_CLOCK_DIVIDER, val); -+ -+ val = mvreg_read(pp, MVNETA_GMAC_CTRL_2); -+ val &= ~MVNETA_GMAC2_INBAND_AN_ENABLE; -+ mvreg_write(pp, MVNETA_GMAC_CTRL_2, val); - } - - mvneta_set_ucast_table(pp, -1); -@@ -3230,9 +3243,6 @@ static int mvneta_port_power_up(struct m - return -EINVAL; - } - -- if (pp->use_inband_status) -- ctrl |= MVNETA_GMAC2_INBAND_AN_ENABLE; -- - /* Cancel Port Reset */ - ctrl &= ~MVNETA_GMAC2_PORT_RESET; - mvreg_write(pp, MVNETA_GMAC_CTRL_2, ctrl); |