aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-08-16 20:34:19 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-17 06:59:45 -0400
commit933fce12a33f219e9021a9ab7b2f9cff94fa8b0e (patch)
tree36e121ed35643e9dab37ade7a1d7569e7383ba9b /drivers/net/qlcnic/qlcnic_main.c
parent1f76da51f58eda3a027e71e98404b80fcad2d80d (diff)
qlcnic: fix aer for virtual func
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>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index bf6d87adda4f..4ecbf41230cb 100644
--- 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)
2733 if (qlcnic_api_lock(adapter)) 2733 if (qlcnic_api_lock(adapter))
2734 return -EINVAL; 2734 return -EINVAL;
2735 2735
2736 if (first_func) { 2736 if (adapter->op_mode != QLCNIC_NON_PRIV_FUNC && first_func) {
2737 adapter->need_fw_reset = 1; 2737 adapter->need_fw_reset = 1;
2738 set_bit(__QLCNIC_START_FW, &adapter->state); 2738 set_bit(__QLCNIC_START_FW, &adapter->state);
2739 QLCWR32(adapter, QLCNIC_CRB_DEV_STATE, QLCNIC_DEV_INITIALIZING); 2739 QLCWR32(adapter, QLCNIC_CRB_DEV_STATE, QLCNIC_DEV_INITIALIZING);