All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Montecchiani <luca.montecchiani@teamfab.it>
To: linux-kernel@vger.kernel.org
Cc: m.luca@iname.com, tytso@mit.edu
Subject: [PATCH] Support Timedia/Sunix/Exsys PCI card problem in Serial 5.0.5 /  Kernel 2.4.xx
Date: Fri, 08 Jun 2001 16:31:14 +0200	[thread overview]
Message-ID: <3B20E1B2.C2198491@teamfab.it> (raw)

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

                 reply	other threads:[~2001-06-08 14:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B20E1B2.C2198491@teamfab.it \
    --to=luca.montecchiani@teamfab.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.luca@iname.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.