aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2011-07-20 10:55:25 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-21 15:38:32 -0400
commit3aeb7d2243e55ddcad3c0b402e7b09619a67f5da (patch)
treef40fa4dad2f84997636b59b025f340ba7b898b0b /drivers/net/bnx2.c
parent415199f2bd977fa4065d4e836b4b7543f7993bc3 (diff)
bnx2: Fix endian swapping on firmware version string
so that ethtool -i will display it correctly on big endian systems. Signed-off-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 3ad9b70ef1b2..4b2b57018a02 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -56,8 +56,8 @@
56#include "bnx2_fw.h" 56#include "bnx2_fw.h"
57 57
58#define DRV_MODULE_NAME "bnx2" 58#define DRV_MODULE_NAME "bnx2"
59#define DRV_MODULE_VERSION "2.1.10" 59#define DRV_MODULE_VERSION "2.1.11"
60#define DRV_MODULE_RELDATE "July 12, 2011" 60#define DRV_MODULE_RELDATE "July 20, 2011"
61#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-6.2.1.fw" 61#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-6.2.1.fw"
62#define FW_RV2P_FILE_06 "bnx2/bnx2-rv2p-06-6.0.15.fw" 62#define FW_RV2P_FILE_06 "bnx2/bnx2-rv2p-06-6.0.15.fw"
63#define FW_MIPS_FILE_09 "bnx2/bnx2-mips-09-6.2.1a.fw" 63#define FW_MIPS_FILE_09 "bnx2/bnx2-mips-09-6.2.1a.fw"
@@ -8097,7 +8097,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
8097 bp->fw_version[j++] = ' '; 8097 bp->fw_version[j++] = ' ';
8098 for (i = 0; i < 3 && j < 28; i++) { 8098 for (i = 0; i < 3 && j < 28; i++) {
8099 reg = bnx2_reg_rd_ind(bp, addr + i * 4); 8099 reg = bnx2_reg_rd_ind(bp, addr + i * 4);
8100 reg = swab32(reg); 8100 reg = be32_to_cpu(reg);
8101 memcpy(&bp->fw_version[j], &reg, 4); 8101 memcpy(&bp->fw_version[j], &reg, 4);
8102 j += 4; 8102 j += 4;
8103 } 8103 }