Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314675
b: refs/heads/master
c: 78ea22e
h: refs/heads/master
i:
  314673: 309115a
  314671: 20d6fae
v: v3
  • Loading branch information
Eddie Wai authored and David S. Miller committed Jun 28, 2012
1 parent 9e26b3f commit bfc9ced
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2028b2376a858cb68a7fcc129f6508f59b45381
refs/heads/master: 78ea22e8042b8a55c5a047869ed1fd9b3711340c
8 changes: 7 additions & 1 deletion trunk/drivers/net/ethernet/broadcom/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4988,8 +4988,14 @@ static int cnic_start_bnx2x_hw(struct cnic_dev *dev)
cp->port_mode = CHIP_PORT_MODE_NONE;

if (BNX2X_CHIP_IS_E2_PLUS(cp->chip_id)) {
u32 val = CNIC_RD(dev, MISC_REG_PORT4MODE_EN_OVWR);
u32 val;

pci_read_config_dword(dev->pcidev, PCICFG_ME_REGISTER, &val);
cp->func = (u8) ((val & ME_REG_ABS_PF_NUM) >>
ME_REG_ABS_PF_NUM_SHIFT);
func = CNIC_FUNC(cp);

val = CNIC_RD(dev, MISC_REG_PORT4MODE_EN_OVWR);
if (!(val & 1))
val = CNIC_RD(dev, MISC_REG_PORT4MODE_EN);
else
Expand Down

0 comments on commit bfc9ced

Please sign in to comment.