Skip to content

Commit

Permalink
be2net: Bug fix in init code in probe
Browse files Browse the repository at this point in the history
PCI function reset needs to invoked after fw init ioctl is issued.

Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sarveshwar Bandi authored and David S. Miller committed May 25, 2010
1 parent d9b52dc commit 556ae19
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2487,17 +2487,19 @@ static int __devinit be_probe(struct pci_dev *pdev,
status = be_cmd_POST(adapter);
if (status)
goto ctrl_clean;

status = be_cmd_reset_function(adapter);
if (status)
goto ctrl_clean;
}

/* tell fw we're ready to fire cmds */
status = be_cmd_fw_init(adapter);
if (status)
goto ctrl_clean;

if (be_physfn(adapter)) {
status = be_cmd_reset_function(adapter);
if (status)
goto ctrl_clean;
}

status = be_stats_init(adapter);
if (status)
goto ctrl_clean;
Expand Down

0 comments on commit 556ae19

Please sign in to comment.