diff options
author | Divy Le Ray <divy@chelsio.com> | 2007-11-16 14:22:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:09 -0500 |
commit | 273fa9042c44790388de7e2a1dab9a1164dd9d17 (patch) | |
tree | f018bc373bd568d8855e49785d85177b20dc5881 /drivers/net/cxgb3/t3_hw.c | |
parent | 91a6b50cf680cd693ee0faaab18a0b7383814d6b (diff) |
cxgb3 - FW upgrade
Bump up FW version to 5.0.
Do not downgrade FW within the same major version range.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/t3_hw.c')
-rw-r--r-- | drivers/net/cxgb3/t3_hw.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c index 522834c42ae7..d7b991b7ed78 100644 --- a/drivers/net/cxgb3/t3_hw.c +++ b/drivers/net/cxgb3/t3_hw.c | |||
@@ -988,13 +988,17 @@ int t3_check_fw_version(struct adapter *adapter, int *must_load) | |||
988 | CH_ERR(adapter, "found wrong FW version(%u.%u), " | 988 | CH_ERR(adapter, "found wrong FW version(%u.%u), " |
989 | "driver needs version %u.%u\n", major, minor, | 989 | "driver needs version %u.%u\n", major, minor, |
990 | FW_VERSION_MAJOR, FW_VERSION_MINOR); | 990 | FW_VERSION_MAJOR, FW_VERSION_MINOR); |
991 | else { | 991 | else if (minor < FW_VERSION_MINOR) { |
992 | *must_load = 0; | 992 | *must_load = 0; |
993 | CH_WARN(adapter, "found wrong FW minor version(%u.%u), " | 993 | CH_WARN(adapter, "found old FW minor version(%u.%u), " |
994 | "driver compiled for version %u.%u\n", major, minor, | ||
995 | FW_VERSION_MAJOR, FW_VERSION_MINOR); | ||
996 | } else { | ||
997 | CH_WARN(adapter, "found newer FW version(%u.%u), " | ||
994 | "driver compiled for version %u.%u\n", major, minor, | 998 | "driver compiled for version %u.%u\n", major, minor, |
995 | FW_VERSION_MAJOR, FW_VERSION_MINOR); | 999 | FW_VERSION_MAJOR, FW_VERSION_MINOR); |
1000 | return 0; | ||
996 | } | 1001 | } |
997 | |||
998 | return -EINVAL; | 1002 | return -EINVAL; |
999 | } | 1003 | } |
1000 | 1004 | ||