projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9b52dc
)
be2net: Bug fix in init code in probe
author
Sarveshwar Bandi
<
[email protected]
>
Tue, 25 May 2010 01:38:25 +0000
(18:38 -0700)
committer
David S. Miller
<
[email protected]
>
Tue, 25 May 2010 01:38:25 +0000
(18:38 -0700)
PCI function reset needs to invoked after fw init ioctl is issued.
Signed-off-by: Sarveshwar Bandi <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/benet/be_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/benet/be_main.c
b/drivers/net/benet/be_main.c
index 058d7f95f5ae17df77c65c473a9683d4ec2a737a..1c79c2009e40cf35e92167ab84df1bbd1d8ea2c6 100644
(file)
--- a/
drivers/net/benet/be_main.c
+++ b/
drivers/net/benet/be_main.c
@@
-2487,10
+2487,6
@@
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 */
@@
-2498,6
+2494,12
@@
static int __devinit be_probe(struct pci_dev *pdev,
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;