summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-11-11 12:54:04 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-11 19:12:06 -0800
commit74e1243549d1ce7f7a94d88bd0c104dec3dfc66b (patch)
treede073911e172fe8cc16bd71f2362485676aa687c /drivers
parent4fc9b8697cdb42f7df322fb97e635491e182ae65 (diff)
downloadlinux-74e1243549d1ce7f7a94d88bd0c104dec3dfc66b.tar.gz
linux-74e1243549d1ce7f7a94d88bd0c104dec3dfc66b.tar.bz2
linux-74e1243549d1ce7f7a94d88bd0c104dec3dfc66b.zip
qlge: Add asic reset to open call.
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/qlge/qlge_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 2bfa783b38a3..d2a4bbe5ef3b 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -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;