tg3: Remove unused link config code
When tg3 devices are shutdown, the driver uses the TG3_PHYFLG_IS_LOW_POWER flag to enable a static phy configuration. Any attempt to use the link configuration variables is dead code. This patch removes such code. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
42b123b129
commit
2855b9fe41
@@ -3607,13 +3607,9 @@ static int tg3_power_down_prepare(struct tg3 *tp)
|
|||||||
tp->link_config.orig_autoneg = tp->link_config.autoneg;
|
tp->link_config.orig_autoneg = tp->link_config.autoneg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(tp->phy_flags & TG3_PHYFLG_ANY_SERDES)) {
|
if (!(tp->phy_flags & TG3_PHYFLG_ANY_SERDES))
|
||||||
tp->link_config.speed = SPEED_10;
|
|
||||||
tp->link_config.duplex = DUPLEX_HALF;
|
|
||||||
tp->link_config.autoneg = AUTONEG_ENABLE;
|
|
||||||
tg3_setup_phy(tp, 0);
|
tg3_setup_phy(tp, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) {
|
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) {
|
||||||
u32 val;
|
u32 val;
|
||||||
|
Reference in New Issue
Block a user