summaryrefslogtreecommitdiffstats
path: root/target/linux/leon/patches-2.6.36/022-greth_avoid_bad_speed_duplex.patch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-04 15:23:08 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-04 15:23:08 +0000
commitdf7b7e61854c0e0da9e75b4a678f0e3b196f79ea (patch)
tree98addc02f41d652e39ae1f7afa251108ab606416 /target/linux/leon/patches-2.6.36/022-greth_avoid_bad_speed_duplex.patch
parentb01f7e06a29068c94cb65fb40317daf54cb60ff0 (diff)
leon: R.I.P.
It is broken since ~9 months and nobody takes care of that. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35488 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/leon/patches-2.6.36/022-greth_avoid_bad_speed_duplex.patch')
-rw-r--r--target/linux/leon/patches-2.6.36/022-greth_avoid_bad_speed_duplex.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/target/linux/leon/patches-2.6.36/022-greth_avoid_bad_speed_duplex.patch b/target/linux/leon/patches-2.6.36/022-greth_avoid_bad_speed_duplex.patch
deleted file mode 100644
index e8253640d..000000000
--- a/target/linux/leon/patches-2.6.36/022-greth_avoid_bad_speed_duplex.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From c2e963057ca5635d6e5387623c3ad0c0b3123754 Mon Sep 17 00:00:00 2001
-From: Daniel Hellstrom <daniel@gaisler.com>
-Date: Wed, 1 Dec 2010 10:28:37 +0100
-Subject: [PATCH] GRETH: avoid writing bad speed/duplex when setting transfer mode
-
-Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
----
- drivers/net/greth.c | 19 ++++++++-----------
- 1 files changed, 8 insertions(+), 11 deletions(-)
-
---- a/drivers/net/greth.c
-+++ b/drivers/net/greth.c
-@@ -1236,29 +1236,26 @@ static void greth_link_change(struct net
- struct greth_private *greth = netdev_priv(dev);
- struct phy_device *phydev = greth->phy;
- unsigned long flags;
--
- int status_change = 0;
-+ u32 ctrl;
-
- spin_lock_irqsave(&greth->devlock, flags);
-
- if (phydev->link) {
-
- if ((greth->speed != phydev->speed) || (greth->duplex != phydev->duplex)) {
--
-- GRETH_REGANDIN(greth->regs->control,
-- ~(GRETH_CTRL_FD | GRETH_CTRL_SP | GRETH_CTRL_GB));
-+ ctrl = GRETH_REGLOAD(greth->regs->control) &
-+ ~(GRETH_CTRL_FD | GRETH_CTRL_SP | GRETH_CTRL_GB);
-
- if (phydev->duplex)
-- GRETH_REGORIN(greth->regs->control, GRETH_CTRL_FD);
--
-- if (phydev->speed == SPEED_100) {
--
-- GRETH_REGORIN(greth->regs->control, GRETH_CTRL_SP);
-- }
-+ ctrl |= GRETH_CTRL_FD;
-
-+ if (phydev->speed == SPEED_100)
-+ ctrl |= GRETH_CTRL_SP;
- else if (phydev->speed == SPEED_1000)
-- GRETH_REGORIN(greth->regs->control, GRETH_CTRL_GB);
-+ ctrl |= GRETH_CTRL_GB;
-
-+ GRETH_REGSAVE(greth->regs->control, ctrl);
- greth->speed = phydev->speed;
- greth->duplex = phydev->duplex;
- status_change = 1;