Support Timedia/Sunix/Exsys PCI card problem in Serial 5.0.5 / Kernel 2.4.xx
PATCH 1/1 Support Timedia/Sunix/Exsys PCI card problem in Serial 5.0.5 / Kernel 2.4.xx
Hi!
I've found a bug in the serial driver 5.0.5, the problem is that the Sunix pci 4port serial card wasn't correctly detected.
I'm using the serial 5.0.5 serial driver on a vanilla 2.2.19 kernel.
Searching the web I've found this changes that looks wrong :
http://www.linuxhq.com/kernel/v2.3/patch/patch-2.4.0-test7/linux_drivers_char_serial.c.html
here the obvious patch that made it work again here on 2.2.19 kernel. Should be applied also on 2.4.x :
serial.c Fri Jun 8 16:12:30 2001 renamed from serial.c.ori Fri Jun 8 16:12:16 2001 +1 -1
@@ -4178,7 +4178,7 @@ for (i=0; timedia_data[i].num; i++) { ids = timedia_data[i].ids; for (j=0; ids[j]; j++) { - if (pci_get_subvendor(dev) == ids[j]) { + if (pci_get_subdevice(dev) == ids[j]) { board->num_ports = timedia_data[i].num; return 0; }
ciao,
luca