update etrax usb support - thanks Hinko Kocevar
[openwrt.git] / target / linux / ar7 / patches-2.6.24 / 900-temporary_cpmac_hack.diff
1 --- linux-2.6.24.2/drivers/net/cpmac.c 2008-03-10 22:13:50.000000000 +0100
2 +++ linux-2.6.24.2/drivers/net/cpmac.c 2008-03-05 15:13:27.000000000 +0100
3 @@ -841,7 +841,8 @@
4 int new_state = 0;
5
6 spin_lock(&priv->lock);
7 - if (priv->phy->link) {
8 + if (1 /* priv->phy->link */ ) {
9 + netif_carrier_on(dev);
10 netif_start_queue(dev);
11 if (priv->phy->duplex != priv->oldduplex) {
12 new_state = 1;
13 @@ -853,11 +854,11 @@
14 priv->oldspeed = priv->phy->speed;
15 }
16
17 - if (!priv->oldlink) {
18 + /*if (!priv->oldlink) {
19 new_state = 1;
20 - priv->oldlink = 1;
21 + priv->oldlink = 1;*/
22 netif_schedule(dev);
23 - }
24 + /*}*/
25 } else if (priv->oldlink) {
26 netif_stop_queue(dev);
27 new_state = 1;
This page took 0.041582 seconds and 5 git commands to generate.