Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 556ae191 authored by Sarveshwar Bandi's avatar Sarveshwar Bandi Committed by David S. Miller
Browse files

be2net: Bug fix in init code in probe



PCI function reset needs to invoked after fw init ioctl is issued.

Signed-off-by: default avatarSarveshwar Bandi <sarveshwarb@serverengines.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d9b52dc6
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -2487,10 +2487,6 @@ static int __devinit be_probe(struct pci_dev *pdev,
		status = be_cmd_POST(adapter);
		status = be_cmd_POST(adapter);
		if (status)
		if (status)
			goto ctrl_clean;
			goto ctrl_clean;

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


	/* tell fw we're ready to fire cmds */
	/* tell fw we're ready to fire cmds */
@@ -2498,6 +2494,12 @@ static int __devinit be_probe(struct pci_dev *pdev,
	if (status)
	if (status)
		goto ctrl_clean;
		goto ctrl_clean;


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

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