* [PATCH] Support Timedia/Sunix/Exsys PCI card problem in Serial 5.0.5 / Kernel 2.4.xx
@ 2001-06-08 14:31 Luca Montecchiani
0 siblings, 0 replies; only message in thread
From: Luca Montecchiani @ 2001-06-08 14:31 UTC (permalink / raw)
To: linux-kernel; +Cc: m.luca, tytso
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.ori Fri Jun 8 16:12:16 2001
+++ serial.c Fri Jun 8 16:12:30 2001
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-06-08 14:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-08 14:31 [PATCH] Support Timedia/Sunix/Exsys PCI card problem in Serial 5.0.5 / Kernel 2.4.xx Luca Montecchiani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox