From: Amit Kumar Salecha <amit.salecha@qlogic.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, ameen.rahman@qlogic.com
Subject: [PATCHv1 NEXT 1/7] qlcnic: fix aer for virtual func
Date: Thu, 12 Aug 2010 04:28:41 -0700 [thread overview]
Message-ID: <1281612527-27838-2-git-send-email-amit.salecha@qlogic.com> (raw)
In-Reply-To: <1281612527-27838-1-git-send-email-amit.salecha@qlogic.com>
Virtual function are not privilge to initialize firmware.
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
---
drivers/net/qlcnic/qlcnic_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index b9615bd..9cc8732 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -2723,7 +2723,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);
--
1.6.0.2
next prev parent reply other threads:[~2010-08-12 11:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 11:28 [PATCHv1 NEXT 0/7]qlcnic: enhancement and fixes Amit Kumar Salecha
2010-08-12 11:28 ` Amit Kumar Salecha [this message]
2010-08-12 11:28 ` [PATCHv1 NEXT 2/7] qlcnic: device state management fixes for virtual func Amit Kumar Salecha
2010-08-12 11:28 ` [PATCHv1 NEXT 3/7] qlcnic: fix for setting function modes Amit Kumar Salecha
2010-08-12 11:28 ` [PATCHv1 NEXT 4/7] qlcnic: add eswitch statistics support Amit Kumar Salecha
2010-08-12 11:28 ` [PATCHv1 NEXT 5/7] qlcnic: fix link status message Amit Kumar Salecha
2010-08-12 11:28 ` [PATCHv1 NEXT 6/7] qlcnic: fix link diag test Amit Kumar Salecha
2010-08-12 11:28 ` [PATCHv1 NEXT 7/7] qlcnic: turn off lro when rxcsum is disabled Amit Kumar Salecha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1281612527-27838-2-git-send-email-amit.salecha@qlogic.com \
--to=amit.salecha@qlogic.com \
--cc=ameen.rahman@qlogic.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox