diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-09-23 19:10:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-09-23 19:10:57 +0000 |
commit | a2daa84c9c0e5f3641e9485c7eb6fa86aa6da6e4 (patch) | |
tree | 378f041c116e483b936dc1fac79d9c8fcbeb3b4f | |
parent | 3a8f3c56e08a33193c2c99d5236ad19f8e3521e6 (diff) | |
download | ldetect-a2daa84c9c0e5f3641e9485c7eb6fa86aa6da6e4.tar ldetect-a2daa84c9c0e5f3641e9485c7eb6fa86aa6da6e4.tar.gz ldetect-a2daa84c9c0e5f3641e9485c7eb6fa86aa6da6e4.tar.bz2 ldetect-a2daa84c9c0e5f3641e9485c7eb6fa86aa6da6e4.tar.xz ldetect-a2daa84c9c0e5f3641e9485c7eb6fa86aa6da6e4.zip |
(pci_probe) try harder to fetch the right driver between '8139cp' &
'8139too' according to PCI revision (#53349)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | pci.c | 7 |
2 files changed, 9 insertions, 0 deletions
@@ -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 @@ -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); |