summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--pci.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 6495ea9..bcff03a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
- display PCI revision (#42576)
+- try harder to fetch the right driver between '8139cp' & '8139too'
+ according to PCI revision
Version 0.8.6 - 23 September 2009, Pascal Terjan
diff --git a/pci.c b/pci.c
index a9c6e40..db840c2 100644
--- a/pci.c
+++ b/pci.c
@@ -95,6 +95,13 @@ extern struct pciusb_entries pci_probe(void) {
}
class_prog = buf[PCI_CLASS_PROG];
+ if (e->device == 0x10ec && e->subvendor == 0x8139) {
+ if (e->pci_revision < 0x20)
+ e->module = strdup("8139too");
+ else
+ e->module = strdup("8139cp");
+ }
+
close(devf);
}
r.entries = realloc(r.entries, sizeof(struct pciusb_entry) * r.nb);