public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.6.3 fix 8250_pnp resource allocation
@ 2004-02-21 14:28 Mark Hindley
  2004-02-21 14:53 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Hindley @ 2004-02-21 14:28 UTC (permalink / raw)
  To: linux-kernel

Hi,

Patch below to ensure that 8250_pnp sets necessary flags so that 8250
driver will reserve ioports.

Before, I was logging errors like

Feb 20 08:42:37 titan kernel: Trying to free nonexistent resource <000003e8-000003ef>

on module unload.

Mark


diff -u ../linux-2.6.3/drivers/serial/8250_pnp.c drivers/serial/8250_pnp.c
--- ../linux-2.6.3/drivers/serial/8250_pnp.c	Sat Feb 21 12:18:33 2004
+++ drivers/serial/8250_pnp.c	Sat Feb 21 14:18:38 2004
@@ -21,8 +21,10 @@
 #include <linux/pnp.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
+#include <linux/tty.h>
 #include <linux/serial.h>
 #include <linux/serialP.h>
+#include <linux/serial_core.h>
 
 #include <asm/bitops.h>
 #include <asm/byteorder.h>
@@ -408,7 +410,7 @@
 	       serial_req.port, serial_req.irq, serial_req.io_type);
 #endif
 
-	serial_req.flags = ASYNC_SKIP_TEST | ASYNC_AUTOPROBE;
+	serial_req.flags = UPF_SKIP_TEST | UPF_AUTOPROBE  | UPF_RESOURCES;
 	serial_req.baud_base = 115200;
 	line = register_serial(&serial_req);
 

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

end of thread, other threads:[~2004-02-21 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-21 14:28 [PATCH] 2.6.3 fix 8250_pnp resource allocation Mark Hindley
2004-02-21 14:53 ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox