diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 7c2c81ab483..a52f52fbb47 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -12710,6 +12710,7 @@ static void __devinit tg3_read_dash_ver(struct tg3 *tp) | |||
12710 | { | 12710 | { |
12711 | int vlen; | 12711 | int vlen; |
12712 | u32 apedata; | 12712 | u32 apedata; |
12713 | char *fwtype; | ||
12713 | 12714 | ||
12714 | if (!(tp->tg3_flags3 & TG3_FLG3_ENABLE_APE) || | 12715 | if (!(tp->tg3_flags3 & TG3_FLG3_ENABLE_APE) || |
12715 | !(tp->tg3_flags & TG3_FLAG_ENABLE_ASF)) | 12716 | !(tp->tg3_flags & TG3_FLAG_ENABLE_ASF)) |
@@ -12725,9 +12726,15 @@ static void __devinit tg3_read_dash_ver(struct tg3 *tp) | |||
12725 | 12726 | ||
12726 | apedata = tg3_ape_read32(tp, TG3_APE_FW_VERSION); | 12727 | apedata = tg3_ape_read32(tp, TG3_APE_FW_VERSION); |
12727 | 12728 | ||
12729 | if (tg3_ape_read32(tp, TG3_APE_FW_FEATURES) & TG3_APE_FW_FEATURE_NCSI) | ||
12730 | fwtype = "NCSI"; | ||
12731 | else | ||
12732 | fwtype = "DASH"; | ||
12733 | |||
12728 | vlen = strlen(tp->fw_ver); | 12734 | vlen = strlen(tp->fw_ver); |
12729 | 12735 | ||
12730 | snprintf(&tp->fw_ver[vlen], TG3_VER_SIZE - vlen, " DASH v%d.%d.%d.%d", | 12736 | snprintf(&tp->fw_ver[vlen], TG3_VER_SIZE - vlen, " %s v%d.%d.%d.%d", |
12737 | fwtype, | ||
12731 | (apedata & APE_FW_VERSION_MAJMSK) >> APE_FW_VERSION_MAJSFT, | 12738 | (apedata & APE_FW_VERSION_MAJMSK) >> APE_FW_VERSION_MAJSFT, |
12732 | (apedata & APE_FW_VERSION_MINMSK) >> APE_FW_VERSION_MINSFT, | 12739 | (apedata & APE_FW_VERSION_MINMSK) >> APE_FW_VERSION_MINSFT, |
12733 | (apedata & APE_FW_VERSION_REVMSK) >> APE_FW_VERSION_REVSFT, | 12740 | (apedata & APE_FW_VERSION_REVMSK) >> APE_FW_VERSION_REVSFT, |