mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Ruud Linders <rkmp@xs4all.nl>
Cc: linux-kernel@vger.kernel.org, Russell King <rmk+lkml@arm.linux.org.uk>
Subject: Re: 2.6.x kernels and ttyS45 for 6 serial ports ?
Date: Tue, 6 Apr 2004 10:37:23 -0600	[thread overview]
Message-ID: <200404061037.23867.bjorn.helgaas@hp.com> (raw)

> The way this device numbering seems to work is that many device names
> are reserved in include/asm/serial.h for devices like fourport/boca/hub6.
> Anything else (=all PCI cards?) gets a number still unassigned.

Right.  Names for everything in SERIAL_PORT_DFNS get reserved.  For
boxes with ACPI, we don't need SERIAL_PORT_DFNS at all (assuming you
build with CONFIG_SERIAL_8250_ACPI).  ia64, for example, doesn't
define SERIAL_PORT_DFNS, so ports just get named sequentially in the
order they're discovered.

The following (untested) patch should give you the same behavior
when you supply the "noisaserial" argument.  Note that this probably
won't work if you're using a serial console, because early serial
registration will fill in the ISA ports before "noisaserial" gets
parsed.

===== Documentation/kernel-parameters.txt 1.44 vs edited =====
--- 1.44/Documentation/kernel-parameters.txt	Mon Mar 22 14:03:22 2004
+++ edited/Documentation/kernel-parameters.txt	Tue Apr  6 09:39:07 2004
@@ -714,6 +714,8 @@
 
 	noisapnp	[ISAPNP] Disables ISA PnP code.
 
+	noisaserial	[SERIAL] Disables probing for legacy ISA serial ports.
+
 	noinitrd	[RAM] Tells the kernel not to load any configured
 			initial RAM disk.
 
===== drivers/serial/8250.c 1.48 vs edited =====
--- 1.48/drivers/serial/8250.c	Mon Mar 15 15:16:26 2004
+++ edited/drivers/serial/8250.c	Tue Apr  6 09:41:16 2004
@@ -117,6 +117,15 @@
 
 #define UART_NR	(ARRAY_SIZE(old_serial_port) + CONFIG_SERIAL_8250_NR_UARTS)
 
+static int __init serial_probe_isa = 1;
+
+static int __init noisaserial(char *str)
+{
+	serial_probe_isa = 0;
+	return 1;
+}
+__setup("noisaserial", noisaserial);
+
 #if defined(CONFIG_SERIAL_8250_RSA) && defined(MODULE)
 
 #define PORT_RSA_MAX 4
@@ -1836,7 +1845,7 @@
 	static int first = 1;
 	int i;
 
-	if (!first)
+	if (!first || !serial_probe_isa)
 		return;
 	first = 0;
 

             reply	other threads:[~2004-04-06 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06 16:37 Bjorn Helgaas [this message]
2004-04-06 16:45 ` Bjorn Helgaas
  -- strict thread matches above, loose matches on Subject: below --
2004-04-05 10:35 Ruud Linders
2004-04-05 11:04 ` Russell King
2004-04-05 14:08   ` Ruud Linders
2004-04-05 14:21     ` Arjan van de Ven

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=200404061037.23867.bjorn.helgaas@hp.com \
    --to=bjorn.helgaas@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rkmp@xs4all.nl \
    --cc=rmk+lkml@arm.linux.org.uk \
    /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

all inboxes | Powered by JetHome®