Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236697
b: refs/heads/master
c: 0583d52
h: refs/heads/master
i:
  236695: f53d920
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Jan 26, 2011
1 parent 6e5b355 commit bee3717
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: bf933c802763b2beb1a1d4977f00af1a78c4fb70
refs/heads/master: 0583d52114b19ea06d03dd2cf762a7737c265400
6 changes: 4 additions & 2 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -8322,7 +8322,8 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl);
udelay(100);

if (tp->tg3_flags2 & TG3_FLG2_USING_MSIX) {
if ((tp->tg3_flags2 & TG3_FLG2_USING_MSIX) &&
tp->irq_cnt > 1) {
val = tr32(MSGINT_MODE);
val |= MSGINT_MODE_MULTIVEC_EN | MSGINT_MODE_ENABLE;
tw32(MSGINT_MODE, val);
Expand Down Expand Up @@ -9062,7 +9063,8 @@ static void tg3_ints_init(struct tg3 *tp)

if (tp->tg3_flags2 & TG3_FLG2_USING_MSI_OR_MSIX) {
u32 msi_mode = tr32(MSGINT_MODE);
if (tp->tg3_flags2 & TG3_FLG2_USING_MSIX)
if ((tp->tg3_flags2 & TG3_FLG2_USING_MSIX) &&
tp->irq_cnt > 1)
msi_mode |= MSGINT_MODE_MULTIVEC_EN;
tw32(MSGINT_MODE, msi_mode | MSGINT_MODE_ENABLE);
}
Expand Down

0 comments on commit bee3717

Please sign in to comment.