Skip to content

Commit

Permalink
tg3: Reset phy during bringup when using phylib
Browse files Browse the repository at this point in the history
The driver puts the phy into low-power mode when it releases the device.
If the device were to be reacquired, the phy needs a reset to bring it
back to full powered operation.  This patch allows phylib-enabled
devices to reset the phy.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matt Carlson authored and David S. Miller committed Feb 13, 2010
1 parent 0339e4e commit 603f117
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -7595,8 +7595,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
tg3_abort_hw(tp, 1);
}

if (reset_phy &&
!(tp->tg3_flags3 & TG3_FLG3_USE_PHYLIB))
if (reset_phy)
tg3_phy_reset(tp);

err = tg3_chip_reset(tp);
Expand Down

0 comments on commit 603f117

Please sign in to comment.