be2net: Bug fix in init code in probe
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/net/benet/be_main.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
drivers/net/benet/be_main.c +6 -4
@@ -2487,10 +2487,6 @@ static int __devinit be_probe(struct pci 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 */
@@ -2498,6 +2494,12 @@ static int __devinit be_probe(struct pciif (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;
Signature · 1 line
1.4.0
From: Sarveshwar Bandi <[email protected]>
Date: Mon, 24 May 2010 16:50:47 +0530
Quoted 3 lines
PCI function reset needs to invoked after fw init ioctl is issued.
Signed-off-by Sarveshwar Bandi <[email protected]>
Applied, thanks.