diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2008-07-21 22:44:10 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-07-22 17:52:56 -0400 |
commit | 58735567b6de3034c9d0d7e1dcf31614b66de986 (patch) | |
tree | 14f5d53e6dfbd4b8793fa5a4154389cbf1c9836e /drivers | |
parent | cd1f8160e015cd1538701b7de216cbeaefc6b0a8 (diff) |
netxen: update driver version
Change driver version to 4.0.0. Netxen firmwares as old as
v3.4.216 are supported.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 10 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 14 |
2 files changed, 11 insertions, 13 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index bcc551ef8519..ac710c30d3ff 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -63,10 +63,12 @@ | |||
63 | 63 | ||
64 | #include "netxen_nic_hw.h" | 64 | #include "netxen_nic_hw.h" |
65 | 65 | ||
66 | #define _NETXEN_NIC_LINUX_MAJOR 3 | 66 | #define _NETXEN_NIC_LINUX_MAJOR 4 |
67 | #define _NETXEN_NIC_LINUX_MINOR 4 | 67 | #define _NETXEN_NIC_LINUX_MINOR 0 |
68 | #define _NETXEN_NIC_LINUX_SUBVERSION 18 | 68 | #define _NETXEN_NIC_LINUX_SUBVERSION 0 |
69 | #define NETXEN_NIC_LINUX_VERSIONID "3.4.18" | 69 | #define NETXEN_NIC_LINUX_VERSIONID "4.0.0" |
70 | |||
71 | #define NETXEN_VERSION_CODE(a, b, c) (((a) << 16) + ((b) << 8) + (c)) | ||
70 | 72 | ||
71 | #define NETXEN_NUM_FLASH_SECTORS (64) | 73 | #define NETXEN_NUM_FLASH_SECTORS (64) |
72 | #define NETXEN_FLASH_SECTOR_SIZE (64 * 1024) | 74 | #define NETXEN_FLASH_SECTOR_SIZE (64 * 1024) |
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index ed8aa5ab2668..96a3bc6426e2 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -2168,16 +2168,12 @@ void netxen_nic_flash_print(struct netxen_adapter *adapter) | |||
2168 | fw_minor, fw_build); | 2168 | fw_minor, fw_build); |
2169 | } | 2169 | } |
2170 | 2170 | ||
2171 | if (fw_major != _NETXEN_NIC_LINUX_MAJOR) { | 2171 | if (NETXEN_VERSION_CODE(fw_major, fw_minor, fw_build) < |
2172 | NETXEN_VERSION_CODE(3, 4, 216)) { | ||
2172 | adapter->driver_mismatch = 1; | 2173 | adapter->driver_mismatch = 1; |
2173 | } | 2174 | printk(KERN_ERR "%s: firmware version %d.%d.%d unsupported\n", |
2174 | if (fw_minor != _NETXEN_NIC_LINUX_MINOR && | 2175 | netxen_nic_driver_name, |
2175 | fw_minor != (_NETXEN_NIC_LINUX_MINOR + 1)) { | 2176 | fw_major, fw_minor, fw_build); |
2176 | adapter->driver_mismatch = 1; | ||
2177 | } | ||
2178 | if (adapter->driver_mismatch) { | ||
2179 | printk(KERN_ERR "%s: driver and firmware version mismatch\n", | ||
2180 | adapter->netdev->name); | ||
2181 | return; | 2177 | return; |
2182 | } | 2178 | } |
2183 | } | 2179 | } |