提交 58735567 编写于 作者: D Dhananjay Phadke 提交者: Jeff Garzik

netxen: update driver version

Change driver version to 4.0.0. Netxen firmwares as old as
v3.4.216 are supported.
Signed-off-by: NDhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 cd1f8160
...@@ -63,10 +63,12 @@ ...@@ -63,10 +63,12 @@
#include "netxen_nic_hw.h" #include "netxen_nic_hw.h"
#define _NETXEN_NIC_LINUX_MAJOR 3 #define _NETXEN_NIC_LINUX_MAJOR 4
#define _NETXEN_NIC_LINUX_MINOR 4 #define _NETXEN_NIC_LINUX_MINOR 0
#define _NETXEN_NIC_LINUX_SUBVERSION 18 #define _NETXEN_NIC_LINUX_SUBVERSION 0
#define NETXEN_NIC_LINUX_VERSIONID "3.4.18" #define NETXEN_NIC_LINUX_VERSIONID "4.0.0"
#define NETXEN_VERSION_CODE(a, b, c) (((a) << 16) + ((b) << 8) + (c))
#define NETXEN_NUM_FLASH_SECTORS (64) #define NETXEN_NUM_FLASH_SECTORS (64)
#define NETXEN_FLASH_SECTOR_SIZE (64 * 1024) #define NETXEN_FLASH_SECTOR_SIZE (64 * 1024)
......
...@@ -2168,16 +2168,12 @@ void netxen_nic_flash_print(struct netxen_adapter *adapter) ...@@ -2168,16 +2168,12 @@ void netxen_nic_flash_print(struct netxen_adapter *adapter)
fw_minor, fw_build); fw_minor, fw_build);
} }
if (fw_major != _NETXEN_NIC_LINUX_MAJOR) { if (NETXEN_VERSION_CODE(fw_major, fw_minor, fw_build) <
NETXEN_VERSION_CODE(3, 4, 216)) {
adapter->driver_mismatch = 1; adapter->driver_mismatch = 1;
} printk(KERN_ERR "%s: firmware version %d.%d.%d unsupported\n",
if (fw_minor != _NETXEN_NIC_LINUX_MINOR && netxen_nic_driver_name,
fw_minor != (_NETXEN_NIC_LINUX_MINOR + 1)) { fw_major, fw_minor, fw_build);
adapter->driver_mismatch = 1;
}
if (adapter->driver_mismatch) {
printk(KERN_ERR "%s: driver and firmware version mismatch\n",
adapter->netdev->name);
return; return;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册