All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make 8250_pnp use pnp_manual_config_dev()
@ 2005-05-10 12:15 Aristeu Sergio Rozanski Filho
  2005-05-10 12:51 ` Russell King
  0 siblings, 1 reply; 5+ messages in thread
From: Aristeu Sergio Rozanski Filho @ 2005-05-10 12:15 UTC (permalink / raw)
  To: linux-serial; +Cc: rmk+serial

[-- Attachment #1: Type: text/plain, Size: 167 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

-- 
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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-11 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2005-05-11 20:24     ` Adam Belay
2005-05-11 20:48       ` Aristeu Sergio Rozanski Filho

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.