From: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
To: Russell King <rmk@arm.linux.org.uk>
Cc: linux-serial@vger.kernel.org, ambx1@neo.rr.com
Subject: Re: [PATCH] make 8250_pnp use pnp_manual_config_dev()
Date: Tue, 10 May 2005 10:07:15 -0300 [thread overview]
Message-ID: <20050510130715.GF3907@cathedrallabs.org> (raw)
In-Reply-To: <20050510135128.C3358@flint.arm.linux.org.uk>
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
> > Hi,
> > this patch makes 8250_pnp use pnp_manual_config_dev() so
> > pnp_reserve_{io,irq} option will be valid for serial ports too.
> > Please consider applying
>
> Please copy this to Adam Belay. There are some problems with PNP
> serial ports because they can clash with with standard addresses
> for x86 ports.
>
> We don't particularly want to reconfigure the standard x86 ports
> to some other addresses just because we've already detected them
> and claimed their resources external to PNP.
OK, adding Adam Belay to CC and attaching the patch again.
--
Aristeu
[-- Attachment #2: 8250_pnp-use_pnp_manual_config_dev.patch --]
[-- Type: text/plain, Size: 949 bytes --]
o Use pnp_manual_config_dev()
Signed-off-by: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
Index: 2.6/drivers/serial/8250_pnp.c
===================================================================
--- 2.6.orig/drivers/serial/8250_pnp.c 2005-05-09 17:33:05.000000000 -0300
+++ 2.6/drivers/serial/8250_pnp.c 2005-05-09 17:33:59.000000000 -0300
@@ -397,6 +397,7 @@
serial_pnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id)
{
struct uart_port port;
+ struct pnp_resource_table table;
int ret, line, flags = dev_id->driver_data;
if (flags & UNKNOWN_DEV) {
@@ -418,6 +419,13 @@
port.uartclk = 1843200;
port.dev = &dev->dev;
+ pnp_init_resource_table(&table);
+ pnp_resource_change(&table.port_resource[0], port.iobase, 8);
+ pnp_resource_change(&table.irq_resource[0], port.irq, 1);
+
+ if (pnp_manual_config_dev(dev, &table, 0))
+ return -ENODEV;
+
line = serial8250_register_port(&port);
if (line >= 0)
next prev parent reply other threads:[~2005-05-10 13:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-10 12:15 [PATCH] make 8250_pnp use pnp_manual_config_dev() Aristeu Sergio Rozanski Filho
2005-05-10 12:51 ` Russell King
2005-05-10 13:07 ` Aristeu Sergio Rozanski Filho [this message]
2005-05-11 20:24 ` Adam Belay
2005-05-11 20:48 ` Aristeu Sergio Rozanski Filho
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=20050510130715.GF3907@cathedrallabs.org \
--to=aris@cathedrallabs.org \
--cc=ambx1@neo.rr.com \
--cc=linux-serial@vger.kernel.org \
--cc=rmk@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