Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 169056 Details for
Bug 242730
[patch] sys-kernel/openvz-sources-2.6.18.028.053-r2 doesn't find my Broadcom NIC
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
tg3.patch
tg3.patch (text/plain), 2.68 KB, created by
Balazs Nemeth
on 2008-10-19 09:15:45 UTC
(
hide
)
Description:
tg3.patch
Filename:
MIME Type:
Creator:
Balazs Nemeth
Created:
2008-10-19 09:15:45 UTC
Size:
2.68 KB
patch
obsolete
>diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c >index fa620ae..2126530 100644 >--- a/drivers/net/tg3.c >+++ b/drivers/net/tg3.c >@@ -197,6 +197,8 @@ static struct pci_device_id tg3_pci_tbl[] = { > PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, > { PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5721, > PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, >+ { PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5722, >+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, > { PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5750, > PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, > { PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5751, >@@ -10531,9 +10533,10 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) > > if (tp->tg3_flags2 & TG3_FLG2_5705_PLUS) { > if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5755 || >- GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787) >- tp->tg3_flags2 |= TG3_FLG2_PHY_JITTER_BUG; >- else >+ GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787) { >+ if (tp->pdev->device != PCI_DEVICE_ID_TIGON3_5722) >+ tp->tg3_flags2 |= TG3_FLG2_PHY_JITTER_BUG; >+ } else > tp->tg3_flags2 |= TG3_FLG2_PHY_BER_BUG; > } > >@@ -11281,6 +11284,7 @@ static char * __devinit tg3_phy_string(struct tg3 *tp) > case PHY_ID_BCM5780: return "5780"; > case PHY_ID_BCM5755: return "5755"; > case PHY_ID_BCM5787: return "5787"; >+ case PHY_ID_BCM5756: return "5722/5756"; > case PHY_ID_BCM8002: return "8002/serdes"; > case 0: return "serdes"; > default: return "unknown"; >diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h >index 3ecf356..4f0410b 100644 >--- a/drivers/net/tg3.h >+++ b/drivers/net/tg3.h >@@ -2276,6 +2276,7 @@ struct tg3 { > #define PHY_ID_BCM5780 0x60008350 > #define PHY_ID_BCM5755 0xbc050cc0 > #define PHY_ID_BCM5787 0xbc050ce0 >+#define PHY_ID_BCM5756 0xbc050ed0 > #define PHY_ID_BCM8002 0x60010140 > #define PHY_ID_INVALID 0xffffffff > #define PHY_ID_REV_MASK 0x0000000f >@@ -2302,7 +2303,8 @@ struct tg3 { > (X) == PHY_ID_BCM5705 || (X) == PHY_ID_BCM5750 || \ > (X) == PHY_ID_BCM5752 || (X) == PHY_ID_BCM5714 || \ > (X) == PHY_ID_BCM5780 || (X) == PHY_ID_BCM5787 || \ >- (X) == PHY_ID_BCM5755 || (X) == PHY_ID_BCM8002) >+ (X) == PHY_ID_BCM5755 || (X) == PHY_ID_BCM5756 || \ >+ (X) == PHY_ID_BCM8002) > > struct tg3_hw_stats *hw_stats; > dma_addr_t stats_mapping; >diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h >index 7a24915..c3d822f 100644 >--- a/include/linux/pci_ids.h >+++ b/include/linux/pci_ids.h >@@ -1905,6 +1905,7 @@ > #define PCI_DEVICE_ID_TIGON3_5705_2 0x1654 > #define PCI_DEVICE_ID_TIGON3_5720 0x1658 > #define PCI_DEVICE_ID_TIGON3_5721 0x1659 >+#define PCI_DEVICE_ID_TIGON3_5722 0x165a > #define PCI_DEVICE_ID_TIGON3_5705M 0x165d > #define PCI_DEVICE_ID_TIGON3_5705M_2 0x165e > #define PCI_DEVICE_ID_TIGON3_5714 0x1668
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242730
: 169056