projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f76da5
)
qlcnic: fix aer for virtual func
author
Amit Kumar Salecha
<amit.salecha@qlogic.com>
Tue, 17 Aug 2010 00:34:19 +0000
(
00:34
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 17 Aug 2010 10:59:45 +0000
(
03:59
-0700)
Virtual function are not privilge to initialize firmware.
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/qlcnic/qlcnic_main.c
b/drivers/net/qlcnic/qlcnic_main.c
index bf6d87adda4fff7a5aa1d1e20728383d08e621f1..4ecbf41230cbeb9273c406ff3dc13632367c6373 100644
(file)
--- a/
drivers/net/qlcnic/qlcnic_main.c
+++ b/
drivers/net/qlcnic/qlcnic_main.c
@@
-2733,7
+2733,7
@@
static int qlcnic_attach_func(struct pci_dev *pdev)
if (qlcnic_api_lock(adapter))
return -EINVAL;
- if (first_func) {
+ if (
adapter->op_mode != QLCNIC_NON_PRIV_FUNC &&
first_func) {
adapter->need_fw_reset = 1;
set_bit(__QLCNIC_START_FW, &adapter->state);
QLCWR32(adapter, QLCNIC_CRB_DEV_STATE, QLCNIC_DEV_INITIALIZING);