From: Matt Carlson Date: Wed, 20 Jul 2011 10:20:53 +0000 (+0000) Subject: tg3: Add 5719 and 5720 to EEE_CAP list X-Git-Tag: firefly_0821_release~7541^2~2710 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f7838b55dc1708fa0bc3170851cddc3d900c310b;p=firefly-linux-kernel-4.4.55.git tg3: Add 5719 and 5720 to EEE_CAP list commit 5baa5e9aa28baccd2a1227095c25bb3e999f250d upstream. This patch adds the 5719 and the 5720 to the list of devices that are EEE capable. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index ef0dab451880..122bde5bb5a4 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -12941,7 +12941,9 @@ static int __devinit tg3_phy_probe(struct tg3 *tp) } if (!(tp->phy_flags & TG3_PHYFLG_ANY_SERDES) && - ((tp->pdev->device == TG3PCI_DEVICE_TIGON3_5718 && + (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719 || + GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5720 || + (tp->pdev->device == TG3PCI_DEVICE_TIGON3_5718 && tp->pci_chip_rev_id != CHIPREV_ID_5717_A0) || (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765 && tp->pci_chip_rev_id != CHIPREV_ID_57765_A0)))