summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/t3_hw.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-11-16 11:22:00 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:04:09 -0800
commit273fa9042c44790388de7e2a1dab9a1164dd9d17 (patch)
treef018bc373bd568d8855e49785d85177b20dc5881 /drivers/net/cxgb3/t3_hw.c
parent91a6b50cf680cd693ee0faaab18a0b7383814d6b (diff)
downloadkernel-crypto-273fa9042c44790388de7e2a1dab9a1164dd9d17.tar.gz
kernel-crypto-273fa9042c44790388de7e2a1dab9a1164dd9d17.tar.xz
kernel-crypto-273fa9042c44790388de7e2a1dab9a1164dd9d17.zip
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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c
index 522834c42ae..d7b991b7ed7 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)
CH_ERR(adapter, "found wrong FW version(%u.%u), "
"driver needs version %u.%u\n", major, minor,
FW_VERSION_MAJOR, FW_VERSION_MINOR);
- else {
+ else if (minor < FW_VERSION_MINOR) {
*must_load = 0;
- CH_WARN(adapter, "found wrong FW minor version(%u.%u), "
+ CH_WARN(adapter, "found old FW minor version(%u.%u), "
+ "driver compiled for version %u.%u\n", major, minor,
+ FW_VERSION_MAJOR, FW_VERSION_MINOR);
+ } else {
+ CH_WARN(adapter, "found newer FW version(%u.%u), "
"driver compiled for version %u.%u\n", major, minor,
FW_VERSION_MAJOR, FW_VERSION_MINOR);
+ return 0;
}
-
return -EINVAL;
}