aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index 94382a78c951..0b68d02fe455 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -10290,17 +10290,21 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
10290 /* clean indirect addresses */ 10290 /* clean indirect addresses */
10291 pci_write_config_dword(bp->pdev, PCICFG_GRC_ADDRESS, 10291 pci_write_config_dword(bp->pdev, PCICFG_GRC_ADDRESS,
10292 PCICFG_VENDOR_ID_OFFSET); 10292 PCICFG_VENDOR_ID_OFFSET);
10293 /* Clean the following indirect addresses for all functions since it 10293 /*
10294 * Clean the following indirect addresses for all functions since it
10294 * is not used by the driver. 10295 * is not used by the driver.
10295 */ 10296 */
10296 REG_WR(bp, PXP2_REG_PGL_ADDR_88_F0, 0); 10297 REG_WR(bp, PXP2_REG_PGL_ADDR_88_F0, 0);
10297 REG_WR(bp, PXP2_REG_PGL_ADDR_8C_F0, 0); 10298 REG_WR(bp, PXP2_REG_PGL_ADDR_8C_F0, 0);
10298 REG_WR(bp, PXP2_REG_PGL_ADDR_90_F0, 0); 10299 REG_WR(bp, PXP2_REG_PGL_ADDR_90_F0, 0);
10299 REG_WR(bp, PXP2_REG_PGL_ADDR_94_F0, 0); 10300 REG_WR(bp, PXP2_REG_PGL_ADDR_94_F0, 0);
10300 REG_WR(bp, PXP2_REG_PGL_ADDR_88_F1, 0); 10301
10301 REG_WR(bp, PXP2_REG_PGL_ADDR_8C_F1, 0); 10302 if (CHIP_IS_E1x(bp)) {
10302 REG_WR(bp, PXP2_REG_PGL_ADDR_90_F1, 0); 10303 REG_WR(bp, PXP2_REG_PGL_ADDR_88_F1, 0);
10303 REG_WR(bp, PXP2_REG_PGL_ADDR_94_F1, 0); 10304 REG_WR(bp, PXP2_REG_PGL_ADDR_8C_F1, 0);
10305 REG_WR(bp, PXP2_REG_PGL_ADDR_90_F1, 0);
10306 REG_WR(bp, PXP2_REG_PGL_ADDR_94_F1, 0);
10307 }
10304 10308
10305 /* 10309 /*
10306 * Enable internal target-read (in case we are probed after PF FLR). 10310 * Enable internal target-read (in case we are probed after PF FLR).