tg3: Fix 5717 serdes powerdown problem
Subsystems (3)
PATCH 1/1 tg3: Fix 5717 serdes powerdown problem
If port 0 of a 5717 serdes device powers down, it hides the phy from port 1. This patch works around the problem by keeping port 0's phy powered up.
Signed-off-by Matt Carlson <[email protected]>
Signed-off-by Michael Chan <[email protected]>
--- drivers/net/ethernet/broadcom/tg3.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/ethernet/broadcom/tg3.c +3 -1
@@ -2779,7 +2779,9 @@ static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power)if (GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5700 ||GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5704 || (GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5780 && - (tp->phy_flags &TG3_PHYFLG_MII_SERDES ))) + (tp->phy_flags &TG3_PHYFLG_MII_SERDES )) || + (GET_ASIC_REV (tp->pci_chip_rev_id) ==ASIC_REV_5717 && + !tp->pci_fn))return ; if (GET_CHIP_REV(tp->pci_chip_rev_id) == CHIPREV_5784_AX ||
Signature · 1 line
1.7.3.4
David Miller
maintainerFrom: "Matt Carlson" <[email protected]>
Date: Mon, 2 Apr 2012 12:01:40 -0700
Quoted 6 lines
If port 0 of a 5717 serdes device powers down, it hides the phy from port 1. This patch works around the problem by keeping port 0's phy powered up.
Signed-off-by Matt Carlson <[email protected]>Signed-off-by Michael Chan <[email protected]>
Applied and queued up for -stable, thanks.