Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107734
b: refs/heads/master
c: 2f751b6
h: refs/heads/master
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Aug 5, 2008
1 parent b0f2338 commit be0308c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 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: cc6533e98a7f3cb7fce9d740da49195c7aa523a4
refs/heads/master: 2f751b67a8be698cec52f786910ef4f0beffe9a7
20 changes: 4 additions & 16 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -7687,21 +7687,11 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
*/
static int tg3_init_hw(struct tg3 *tp, int reset_phy)
{
int err;

/* Force the chip into D0. */
err = tg3_set_power_state(tp, PCI_D0);
if (err)
goto out;

tg3_switch_clocks(tp);

tw32(TG3PCI_MEM_WIN_BASE_ADDR, 0);

err = tg3_reset_hw(tp, reset_phy);

out:
return err;
return tg3_reset_hw(tp, reset_phy);
}

#define TG3_STAT_ADD32(PSTAT, REG) \
Expand Down Expand Up @@ -8016,13 +8006,11 @@ static int tg3_open(struct net_device *dev)

netif_carrier_off(tp->dev);

tg3_full_lock(tp, 0);

err = tg3_set_power_state(tp, PCI_D0);
if (err) {
tg3_full_unlock(tp);
if (err)
return err;
}

tg3_full_lock(tp, 0);

tg3_disable_ints(tp);
tp->tg3_flags &= ~TG3_FLAG_INIT_COMPLETE;
Expand Down

0 comments on commit be0308c

Please sign in to comment.