diff options
author | sarveshwarb <sarveshwarb@serverengines.com> | 2009-08-05 16:05:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-05 16:05:24 -0400 |
commit | 14074eab8dcaa7f66d8f52612b2dcec51222bb5f (patch) | |
tree | b385d8edcc1c6ce44ac7c58552cb0de7839ceb46 /drivers/net/benet/be_main.c | |
parent | 0d6038ee76f2e06b79d0465807f67e86bf4025de (diff) |
be2net: Patch to perform function reset at initialization
This patch is a bug fix to avoid system going into a bad state when
driver is loaded in context of kdump kernel. The patch fixes the issue
by performing a soft reset of pci function at probe time.
Signed-off-by: sarveshwarb <sarveshwarb@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r-- | drivers/net/benet/be_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index ef82a52f3934..d20235b16800 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -1873,6 +1873,10 @@ static int __devinit be_probe(struct pci_dev *pdev, | |||
1873 | if (status) | 1873 | if (status) |
1874 | goto free_netdev; | 1874 | goto free_netdev; |
1875 | 1875 | ||
1876 | status = be_cmd_reset_function(adapter); | ||
1877 | if (status) | ||
1878 | goto ctrl_clean; | ||
1879 | |||
1876 | status = be_stats_init(adapter); | 1880 | status = be_stats_init(adapter); |
1877 | if (status) | 1881 | if (status) |
1878 | goto ctrl_clean; | 1882 | goto ctrl_clean; |