summaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge/qlge_main.c
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-06-09 07:39:29 +0200
committerDavid S. Miller <davem@davemloft.net>2009-06-10 10:04:08 +0200
commitcfec0cbc92cdcec5a540bf340c5a9fb8c89e5af1 (patch)
tree8ddab4c01ca308c04988d305a3bbd3ee158c7d64 /drivers/net/qlge/qlge_main.c
parentnetfilter: Fix extra semi-colon in skb_walk_frags() changes. (diff)
downloadlinux-cfec0cbc92cdcec5a540bf340c5a9fb8c89e5af1.tar.xz
linux-cfec0cbc92cdcec5a540bf340c5a9fb8c89e5af1.zip
qlge: Add support for retrieving firmware version.
This is used by driver banner and ethtool info. Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge_main.c')
-rw-r--r--drivers/net/qlge/qlge_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 0b0778d9919c..5fb875d60d00 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -837,6 +837,13 @@ exit:
static int ql_8000_port_initialize(struct ql_adapter *qdev)
{
int status;
+ /*
+ * Get MPI firmware version for driver banner
+ * and ethool info.
+ */
+ status = ql_mb_about_fw(qdev);
+ if (status)
+ goto exit;
status = ql_mb_get_fw_state(qdev);
if (status)
goto exit;