OSDN Git Service

qlge: Add asic reset to open call.
authorRon Mercer <ron.mercer@qlogic.com>
Wed, 11 Nov 2009 12:54:04 +0000 (12:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Nov 2009 03:12:06 +0000 (19:12 -0800)
Force asic to known state at open().

Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge_main.c

index 2bfa783..d2a4bbe 100644 (file)
@@ -3714,6 +3714,10 @@ static int qlge_open(struct net_device *ndev)
        int err = 0;
        struct ql_adapter *qdev = netdev_priv(ndev);
 
+       err = ql_adapter_reset(qdev);
+       if (err)
+               return err;
+
        err = ql_configure_rings(qdev);
        if (err)
                return err;