diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2007-11-13 00:17:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-13 00:17:07 -0500 |
commit | 5f60891b80f1a0f0a0015b084f4838ae8b9637c7 (patch) | |
tree | 0df104674c6c8b3731227637530c6f073314240b /drivers/net | |
parent | 662f38d242488cfdcda7b3684ac610d3e4d568a7 (diff) |
[TG3]: Limit 5784 / 5764 to MAC LED mode
Most 5784 / 5764 LED modes do not work as expected because of a hardware
bug. This patch forces the LED mode to be in MAC LED mode.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tg3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index b5c4799003e0..bb3b73435170 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -10610,6 +10610,9 @@ static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp) | |||
10610 | tp->pdev->subsystem_vendor == PCI_VENDOR_ID_DELL) | 10610 | tp->pdev->subsystem_vendor == PCI_VENDOR_ID_DELL) |
10611 | tp->led_ctrl = LED_CTRL_MODE_PHY_2; | 10611 | tp->led_ctrl = LED_CTRL_MODE_PHY_2; |
10612 | 10612 | ||
10613 | if (tp->pci_chip_rev_id == CHIPREV_ID_5784_A0) | ||
10614 | tp->led_ctrl = LED_CTRL_MODE_MAC; | ||
10615 | |||
10613 | if (nic_cfg & NIC_SRAM_DATA_CFG_EEPROM_WP) { | 10616 | if (nic_cfg & NIC_SRAM_DATA_CFG_EEPROM_WP) { |
10614 | tp->tg3_flags |= TG3_FLAG_EEPROM_WRITE_PROT; | 10617 | tp->tg3_flags |= TG3_FLAG_EEPROM_WRITE_PROT; |
10615 | if ((tp->pdev->subsystem_vendor == | 10618 | if ((tp->pdev->subsystem_vendor == |