aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2010-11-24 08:48:55 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-28 13:47:20 -0500
commitbe7ff1afec25f2700ca85e3956a2cb3a7b74acd5 (patch)
treeebdbc8e614e369f42aebda4823d42b9ac890614b /drivers/net/bnx2.c
parenta5dac108d57072eec4d6745f32c162524509f2cb (diff)
bnx2: Remove config access to non-standard registers
In KVM passthrough mode, the driver may not have config access to non-standard registers. The BNX2_PCICFG_MISC_CONFIG config register access to setup mailbox swapping can be done using MMIO. Update version to 2.0.20. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 78f91ef44969..03209a37883e 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.0.18" 59#define DRV_MODULE_VERSION "2.0.20"
60#define DRV_MODULE_RELDATE "Oct 7, 2010" 60#define DRV_MODULE_RELDATE "Nov 24, 2010"
61#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-6.0.15.fw" 61#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-6.0.15.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.0.17.fw" 63#define FW_MIPS_FILE_09 "bnx2/bnx2-mips-09-6.0.17.fw"
@@ -4683,7 +4683,7 @@ bnx2_reset_chip(struct bnx2 *bp, u32 reset_code)
4683 val = BNX2_PCICFG_MISC_CONFIG_REG_WINDOW_ENA | 4683 val = BNX2_PCICFG_MISC_CONFIG_REG_WINDOW_ENA |
4684 BNX2_PCICFG_MISC_CONFIG_TARGET_MB_WORD_SWAP; 4684 BNX2_PCICFG_MISC_CONFIG_TARGET_MB_WORD_SWAP;
4685 4685
4686 pci_write_config_dword(bp->pdev, BNX2_PCICFG_MISC_CONFIG, val); 4686 REG_WR(bp, BNX2_PCICFG_MISC_CONFIG, val);
4687 4687
4688 } else { 4688 } else {
4689 val = BNX2_PCICFG_MISC_CONFIG_CORE_RST_REQ | 4689 val = BNX2_PCICFG_MISC_CONFIG_CORE_RST_REQ |
@@ -7924,15 +7924,15 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7924 goto err_out_release; 7924 goto err_out_release;
7925 } 7925 }
7926 7926
7927 bnx2_set_power_state(bp, PCI_D0);
7928
7927 /* Configure byte swap and enable write to the reg_window registers. 7929 /* Configure byte swap and enable write to the reg_window registers.
7928 * Rely on CPU to do target byte swapping on big endian systems 7930 * Rely on CPU to do target byte swapping on big endian systems
7929 * The chip's target access swapping will not swap all accesses 7931 * The chip's target access swapping will not swap all accesses
7930 */ 7932 */
7931 pci_write_config_dword(bp->pdev, BNX2_PCICFG_MISC_CONFIG, 7933 REG_WR(bp, BNX2_PCICFG_MISC_CONFIG,
7932 BNX2_PCICFG_MISC_CONFIG_REG_WINDOW_ENA | 7934 BNX2_PCICFG_MISC_CONFIG_REG_WINDOW_ENA |
7933 BNX2_PCICFG_MISC_CONFIG_TARGET_MB_WORD_SWAP); 7935 BNX2_PCICFG_MISC_CONFIG_TARGET_MB_WORD_SWAP);
7934
7935 bnx2_set_power_state(bp, PCI_D0);
7936 7936
7937 bp->chip_id = REG_RD(bp, BNX2_MISC_ID); 7937 bp->chip_id = REG_RD(bp, BNX2_MISC_ID);
7938 7938