From: Amit Kumar Salecha Date: Tue, 17 Aug 2010 00:34:19 +0000 (+0000) Subject: qlcnic: fix aer for virtual func X-Git-Tag: firefly_0821_release~7613^2~3670^2~819 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=933fce12a33f219e9021a9ab7b2f9cff94fa8b0e;p=firefly-linux-kernel-4.4.55.git qlcnic: fix aer for virtual func Virtual function are not privilge to initialize firmware. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller --- 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) 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);