Re: PCI serial card with PCI 9052?

From: Pavel Janík (Pavel@Janik.cz)
Date: Tue Dec 10 2002 - 02:07:46 EST


   From: Russell King <rmk@arm.linux.org.uk>
   Date: Sun, 1 Dec 2002 11:02:02 +0000

Hi Russell,

> Looking at all information in this thread so far, I think that you want
> to use the existing pbn_b2_bt_2_115200 entry rather than creating an
> additional entry for a card:
>
> { SPCI_FL_BASE2 | SPCI_FL_BASE_TABLE, 2, 115200 }, /*
> pbn_b2_bt_2_115200 */
>
> -> Two ports, one at BASE2 the other at BASE3 running at a max baud of
> 115200.

yes, this is it:

--- linux-2.4.19.orig/drivers/char/serial.c Tue Dec 3 08:50:21 2002
+++ linux-2.4.19/drivers/char/serial.c Tue Dec 3 08:53:38 2002
@@ -4672,6 +4678,10 @@
                 PCI_SUBVENDOR_ID_KEYSPAN,
                 PCI_SUBDEVICE_ID_KEYSPAN_SX2, 0, 0,
                 pbn_panacom },
+// PJ: New entry
+ { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
+ 0xd841, 0x0200, 0, 0,
+ pbn_b2_bt_2_115200 },
         { PCI_VENDOR_ID_PANACOM, PCI_DEVICE_ID_PANACOM_QUADMODEM,
                 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
                 pbn_panacom4 },

On the other hand, that card worked only with "IRQ" 0, ie. polling. We
could not got it running with the IRQ the PCI bus told us (there was only
one PCI card in the machine, no peripherals, no interrupt conflict...).

> Your bios appears to have assigned the ports so that your patch will work,
> but only if your bios keeps the (base3 = base2 + 8) relationship (which
> isn't guaranteed.)

Yes, in the other machine, the difference was different.

-- 
Pavel Janík

Don't stop with your first draft. -- The Elements of Programming Style (Kernighan & Plaugher) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:16 EST