]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Fix reset handling in VNET driver.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 18 Jul 2007 07:07:39 +0000 (00:07 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 18 Jul 2007 08:20:18 +0000 (01:20 -0700)
In vnet_event(), if the channel was reset, try to get the link
going again by invoking vio_port_up() after dropping the lock.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sunvnet.c

index b69f55226bd618fb1a5c590fdb2e0e6f7c0938e5..b801e3b3a11a002907d602560e3abfec4cd5234a 100644 (file)
@@ -498,6 +498,8 @@ static void vnet_event(void *arg, int event)
                vio_link_state_change(vio, event);
                spin_unlock_irqrestore(&vio->lock, flags);
 
+               if (event == LDC_EVENT_RESET)
+                       vio_port_up(vio);
                return;
        }