be2net: Bug fix in init code in probe

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>

authored by Sarveshwar Bandi and committed by David S. Miller 556ae191 d9b52dc6

+6 -4
+6 -4
drivers/net/benet/be_main.c
··· 2487 2487 status = be_cmd_POST(adapter); 2488 2488 if (status) 2489 2489 goto ctrl_clean; 2490 - 2491 - status = be_cmd_reset_function(adapter); 2492 - if (status) 2493 - goto ctrl_clean; 2494 2490 } 2495 2491 2496 2492 /* tell fw we're ready to fire cmds */ 2497 2493 status = be_cmd_fw_init(adapter); 2498 2494 if (status) 2499 2495 goto ctrl_clean; 2496 + 2497 + if (be_physfn(adapter)) { 2498 + status = be_cmd_reset_function(adapter); 2499 + if (status) 2500 + goto ctrl_clean; 2501 + } 2500 2502 2501 2503 status = be_stats_init(adapter); 2502 2504 if (status)