diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-01-12 05:11:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-13 20:18:54 -0500 |
commit | 55dffe79b34e2af98bd1315f1e00c2fc6a7a7078 (patch) | |
tree | 96ecbf679f582be592f8bd68d20b5bb99521f8df /drivers/net/tg3.c | |
parent | d1ec96af77df611d1728f3bb70289f83a02df1ea (diff) |
tg3: Disable 5717 serdes and B0 support
The B0 revision of the 5717 will not get enough testing by the time
2.6.33 ships. Since the kernel is already at RC3, serdes support
will require too many patches to fix. For these reasons, this patch
disables 5717 serdes support and will refuse to attach to all 5717
devices that are later than an A0 revision.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 0a632f96d16b..2d1a7404057b 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -13390,6 +13390,11 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13390 | if (err) | 13390 | if (err) |
13391 | return err; | 13391 | return err; |
13392 | 13392 | ||
13393 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717 && | ||
13394 | (tp->pci_chip_rev_id != CHIPREV_ID_5717_A0 || | ||
13395 | (tp->tg3_flags2 & TG3_FLG2_MII_SERDES))) | ||
13396 | return -ENOTSUPP; | ||
13397 | |||
13393 | /* Initialize data/descriptor byte/word swapping. */ | 13398 | /* Initialize data/descriptor byte/word swapping. */ |
13394 | val = tr32(GRC_MODE); | 13399 | val = tr32(GRC_MODE); |
13395 | val &= GRC_MODE_HOST_STACKUP; | 13400 | val &= GRC_MODE_HOST_STACKUP; |