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:
2abea2f
)
qlcnic: Fix for kdump
author
Rajesh Borundia
<
[email protected]
>
Tue, 16 Nov 2010 14:08:06 +0000
(14:08 +0000)
committer
David S. Miller
<
[email protected]
>
Wed, 17 Nov 2010 19:49:25 +0000
(11:49 -0800)
In case of kdump environment the function may be in unknown state.
Reset the function using PCI FLR before initializing it.
Signed-off-by: Rajesh Borundia <
[email protected]
>
Signed-off-by: Anirban Chakraborty <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/qlcnic/qlcnic_ctx.c
patch
|
blob
|
history
diff --git
a/drivers/net/qlcnic/qlcnic_ctx.c
b/drivers/net/qlcnic/qlcnic_ctx.c
index 1cdc05dade6b0b5d31d9b0aa27fab5a7fffed894..3ad1f3eba289441e43d6db49721c8ac3a4e862c9 100644
(file)
--- a/
drivers/net/qlcnic/qlcnic_ctx.c
+++ b/
drivers/net/qlcnic/qlcnic_ctx.c
@@
-480,6
+480,9
@@
int qlcnic_fw_create_ctx(struct qlcnic_adapter *adapter)
{
int err;
+ if (reset_devices)
+ pci_reset_function(adapter->pdev);
+
err = qlcnic_fw_cmd_create_rx_ctx(adapter);
if (err)
return err;