projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix mini_fo compile -- still oopses on boot
[openwrt.git]
/
target
/
linux
/
ar7
/
patches-2.6.24
/
140-cpmac_fix.patch
diff --git
a/target/linux/ar7/patches-2.6.24/140-cpmac_fix.patch
b/target/linux/ar7/patches-2.6.24/140-cpmac_fix.patch
index
49c6b32
..
020197a
100644
(file)
--- a/
target/linux/ar7/patches-2.6.24/140-cpmac_fix.patch
+++ b/
target/linux/ar7/patches-2.6.24/140-cpmac_fix.patch
@@
-1,5
+1,5
@@
--- linux-2.6.24/drivers/net/cpmac.c 2008-01-25 02:20:37.000000000 +0100
--- linux-2.6.24/drivers/net/cpmac.c 2008-01-25 02:20:37.000000000 +0100
-+++ linux-2.6.24/drivers/net/cpmac.c 2008-0
2-08 20:04:58.000000000 +01
00
++++ linux-2.6.24/drivers/net/cpmac.c 2008-0
4-06 21:30:03.000000000 +02
00
@@ -38,6 +38,7 @@
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
@@ -38,6 +38,7 @@
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
@@
-43,10
+43,12
@@
struct cpmac_priv *priv =
container_of(work, struct cpmac_priv, reset_work);
struct cpmac_priv *priv =
container_of(work, struct cpmac_priv, reset_work);
-@@ -650,8 +655,4
6
@@
+@@ -650,8 +655,4
7
@@
spin_unlock(&priv->rx_lock);
cpmac_clear_tx(priv->dev);
cpmac_hw_start(priv->dev);
spin_unlock(&priv->rx_lock);
cpmac_clear_tx(priv->dev);
cpmac_hw_start(priv->dev);
+- napi_enable(&priv->napi);
+- netif_start_queue(priv->dev);
+ barrier();
+ atomic_dec(&priv->reset_pending);
+
+ barrier();
+ atomic_dec(&priv->reset_pending);
+
@@
-54,6
+56,7
@@
+ netif_wake_subqueue(priv->dev, i);
+ }
+ netif_wake_queue(priv->dev);
+ netif_wake_subqueue(priv->dev, i);
+ }
+ netif_wake_queue(priv->dev);
++ cpmac_write(priv->regs, CPMAC_MAC_INT_ENABLE, 3);
+}
+
+static void cpmac_check_status(struct net_device *dev)
+}
+
+static void cpmac_check_status(struct net_device *dev)
@@
-82,16
+85,15
@@
+ netif_stop_queue(dev);
+ cpmac_hw_stop(dev);
+ if (schedule_work(&priv->reset_work))
+ netif_stop_queue(dev);
+ cpmac_hw_stop(dev);
+ if (schedule_work(&priv->reset_work))
-+ atomic_inc(&priv->reset_pending);
++ atomic_inc(&priv->reset_pending);
+ if (unlikely(netif_msg_hw(priv)))
+ cpmac_dump_regs(dev);
+ }
+ if (unlikely(netif_msg_hw(priv)))
+ cpmac_dump_regs(dev);
+ }
- napi_enable(&priv->napi);
-- netif_start_queue(priv->dev);
++ cpmac_write(priv->regs, CPMAC_MAC_INT_CLEAR, 0xff);
}
static irqreturn_t cpmac_irq(int irq, void *dev_id)
}
static irqreturn_t cpmac_irq(int irq, void *dev_id)
-@@ -661,9 +70
4
,6 @@
+@@ -661,9 +70
5
,6 @@
int queue;
u32 status;
int queue;
u32 status;
@@
-101,7
+103,7
@@
priv = netdev_priv(dev);
status = cpmac_read(priv->regs, CPMAC_MAC_INT_VECTOR);
priv = netdev_priv(dev);
status = cpmac_read(priv->regs, CPMAC_MAC_INT_VECTOR);
-@@ -685,49 +72
5
,33 @@
+@@ -685,49 +72
6
,33 @@
cpmac_write(priv->regs, CPMAC_MAC_EOI_VECTOR, 0);
cpmac_write(priv->regs, CPMAC_MAC_EOI_VECTOR, 0);
@@
-165,7
+167,7
@@
}
static int cpmac_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
}
static int cpmac_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
-@@ -848,15 +87
2
,6 @@
+@@ -848,15 +87
3
,6 @@
spin_unlock(&priv->lock);
}
spin_unlock(&priv->lock);
}
@@
-181,7
+183,7
@@
static int cpmac_open(struct net_device *dev)
{
int i, size, res;
static int cpmac_open(struct net_device *dev)
{
int i, size, res;
-@@ -923,6 +93
8
,7 @@
+@@ -923,6 +93
9
,7 @@
goto fail_irq;
}
goto fail_irq;
}
@@
-189,7
+191,7
@@
INIT_WORK(&priv->reset_work, cpmac_hw_error);
cpmac_hw_start(dev);
INIT_WORK(&priv->reset_work, cpmac_hw_error);
cpmac_hw_start(dev);
-@@ -999,11 +101
5
,11 @@
+@@ -999,11 +101
6
,11 @@
static int __devinit cpmac_probe(struct platform_device *pdev)
{
int rc, phy_id, i;
static int __devinit cpmac_probe(struct platform_device *pdev)
{
int rc, phy_id, i;
@@
-202,7
+204,7
@@
DECLARE_MAC_BUF(mac);
pdata = pdev->dev.platform_data;
DECLARE_MAC_BUF(mac);
pdata = pdev->dev.platform_data;
-@@ -1017,9 +103
3
,23 @@
+@@ -1017,9 +103
4
,23 @@
}
if (phy_id == PHY_MAX_ADDR) {
}
if (phy_id == PHY_MAX_ADDR) {
@@
-228,7
+230,7
@@
printk(KERN_ERR "cpmac: no PHY present\n");
return -ENODEV;
}
printk(KERN_ERR "cpmac: no PHY present\n");
return -ENODEV;
}
-@@ -1063,32 +109
3
,8 @@
+@@ -1063,32 +109
4
,8 @@
priv->msg_enable = netif_msg_init(debug_level, 0xff);
memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr));
priv->msg_enable = netif_msg_init(debug_level, 0xff);
memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr));
This page took
0.024904 seconds
and
4
git commands to generate.