public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel@Janik.cz (Pavel Janík)
To: linux-kernel@vger.kernel.org
Subject: Re: PCI serial card with PCI 9052?
Date: Sun, 24 Nov 2002 15:49:36 +0100	[thread overview]
Message-ID: <m3vg2naupr.fsf@Janik.cz> (raw)
In-Reply-To: 20021124114307.A25408@flint.arm.linux.org.uk

   From: Russell King <rmk@arm.linux.org.uk>
   Date: Sun, 24 Nov 2002 11:43:07 +0000

Hi,

   > On Sun, Nov 24, 2002 at 12:27:14PM +0100, Pavel Janík wrote:
   > > I have tried to cat /dev/ttyS5 after
   > > 
   > > setserial /dev/ttyS5 port 0xd800 irq 11
   > 
   > I think you actually want:
   > 
   > setserial /dev/ttyS5 port 0xd800 irq 11 autoconfig
   > 
   > and then cat /proc/tty/driver/serial and see if the 5: line has changed
   > from uart:unknown.

yes, that's it:

mirka:~ # grep ^5: /proc/tty/driver/serial
5: uart:unknown port:1A8 irq:9
mirka:~ # setserial /dev/ttyS5 port 0x9800 irq 11 autoconfig
mirka:~ # grep ^5: /proc/tty/driver/serial
5: uart:16550A port:9800 irq:11 baud:9600 tx:0 rx:0 

So, adding this patch should help me. I can not test it right now, because
I do not have any serial device here at home, but will test it on monday.

Thank you for your help.

--- linux-2.4.19.orig/drivers/char/serial.c	Sun Nov 24 14:32:19 2002
+++ linux-2.4.19/drivers/char/serial.c	Sun Nov 24 15:15:54 2002
@@ -4181,7 +4181,7 @@
    
 #ifdef SERIAL_DEBUG_PCI
 	printk(KERN_DEBUG " Subsystem ID %lx (intel 960)\n",
-	       (unsigned long) board->subdevice);
+	       (unsigned long) dev->subsystem_device);
 #endif
 	/* is firmware started? */
 	pci_read_config_dword(dev, 0x44, (void*) &oldval); 
@@ -4340,6 +4340,7 @@
 	pbn_panacom2,
 	pbn_panacom4,
 	pbn_plx_romulus,
+	pbn_plx_9052,
 	pbn_oxsemi,
 	pbn_timedia,
 	pbn_intel_i960,
@@ -4425,6 +4426,8 @@
 		0x400, 7, pci_plx9050_fn },
 	{ SPCI_FL_BASE2, 4, 921600,			   /* pbn_plx_romulus */
 		0x20, 2, pci_plx9050_fn, 0x03 },
+	{ SPCI_FL_BASE2, 2, 115200,			   /* pbn_plx_9052 */
+		0x400},
 		/* This board uses the size of PCI Base region 0 to
 		 * signal now many ports are available */
 	{ SPCI_FL_BASE0 | SPCI_FL_REGION_SZ_CAP, 32, 115200 }, /* pbn_oxsemi */
@@ -4707,6 +4710,9 @@
 	{	PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_ROMULUS,
 		0x10b5, 0x106a, 0, 0,
 		pbn_plx_romulus },
+	{	PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
+		0xd841, 0x0200, 0, 0,
+		pbn_plx_9052 },
 	{	PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSC100,
 		PCI_ANY_ID, PCI_ANY_ID, 0, 0, 
 		pbn_b1_4_115200 },
-- 
Pavel Janík

I can't make such predictions--my crystal ball is cloudy today.
                  -- Richard Stallman in emacs-devel

  parent reply	other threads:[~2002-11-24 14:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-19 22:09 PCI serial card with PCI 9052? Pavel Janík
2002-11-20  9:56 ` Andrey Panin
2002-11-24 11:27   ` Pavel Janík
2002-11-24 11:43     ` Russell King
2002-11-24 13:39       ` Gunther Mayer
2002-11-24 14:49       ` Pavel Janík [this message]
2002-11-25  9:48         ` Andrey Panin
2002-11-25 20:47           ` Pavel Janík
2002-11-27 11:34             ` Pavel Janík
2002-11-27 12:06               ` Andrey Panin
2002-11-27 12:21                 ` Pavel Janík
2002-11-27 12:34                   ` Andrey Panin
     [not found]             ` <20021201110202.E24114@flint.arm.linux.org.uk>
2002-12-10  7:07               ` Pavel Janík
2002-12-10  7:30                 ` Andrey Panin
2002-12-10  8:10                   ` Pavel Janík

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=m3vg2naupr.fsf@Janik.cz \
    --to=pavel@janik.cz \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox