summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rl.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2004-01-02 17:22:12 +0000
committerwpaul <wpaul@FreeBSD.org>2004-01-02 17:22:12 +0000
commitd4d6be2b788a91178f08777aabe1e8a0acba3fef (patch)
tree0b759fc85d901690dcc17a7ee8570266c210f97a /sys/pci/if_rl.c
parent880a2ed1296275e0b1eaa397bd668e4411c9cead (diff)
downloadFreeBSD-src-d4d6be2b788a91178f08777aabe1e8a0acba3fef.zip
FreeBSD-src-d4d6be2b788a91178f08777aabe1e8a0acba3fef.tar.gz
Fix detection of RealTek 8129 PCI cards. Apparently, these cards
report a hardware rev of 0x00000000. Sadly, the 8169 gigE MAC also reports 0x00000000, so testing against this for exclusion results in both cards being skipped by rl_probe(). Make the 8169 test more specific by matching against both the hwrev and the PCI ID for this chip. PR: kern/60824
Diffstat (limited to 'sys/pci/if_rl.c')
-rw-r--r--sys/pci/if_rl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index 1e3863f..2e0a9ee 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -877,7 +877,8 @@ rl_probe(dev)
/* Don't attach to 8139C+ or 8169/8110 chips. */
if (hwrev == RL_HWREV_8139CPLUS ||
- hwrev == RL_HWREV_8169 ||
+ (hwrev == RL_HWREV_8169 &&
+ t->rl_did == RT_DEVICEID_8169) ||
hwrev == RL_HWREV_8169S ||
hwrev == RL_HWREV_8110S) {
t++;
OpenPOWER on IntegriCloud