Staging: sxg: Fix interface bug not working after open is called second time.
authorMithlesh Thukral <mithlesh@linsyssoft.com>
Fri, 20 Mar 2009 12:05:12 +0000 (17:35 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:13 +0000 (14:53 -0700)
Fix the problem of the interface not working after a sequence of up-down-up
events. The problem was observed only on systems where the card was using MSI-X
interrupts. On the second time open, the driver did not request MSI-X vector
but was trying to use normal interrupts.

Signed-off-by: LinSysSoft Sahara Team <saharaproj@linsyssoft.com>
Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sxg/sxg.c

index c914b9877fa8226e00b5ef82373a5685974d1b9e..59b241e8e288a6dbf801f2b35889d4863e3e590c 100644 (file)
@@ -2254,7 +2254,7 @@ int sxg_second_open(struct net_device * dev)
         SXG_ENABLE_ALL_INTERRUPTS(adapter);
 
        netif_carrier_on(dev);
-        sxg_register_interrupt(adapter);
+       sxg_register_intr(adapter);
        spin_unlock_irqrestore(&sxg_global.driver_lock, sxg_global.flags);
        return (STATUS_SUCCESS);