linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Request resources if not autoconfiguring new ports
@ 2004-09-24  8:23 David Vrabel
  0 siblings, 0 replies; only message in thread
From: David Vrabel @ 2004-09-24  8:23 UTC (permalink / raw)
  To: linux-serial

Hi,

Serial core doesn't request resources when adding new ports if the port 
isn't to be autoconfigured (UPF_BOOT_AUTOCONF is not set).  This also 
means the UPF_IOREMAP flag doesn't work.

--- linux-2.6-armbe.orig/drivers/serial/serial_core.c	2004-09-23 
15:04:08.000000000 +0100
+++ linux-2.6-armbe/drivers/serial/serial_core.c	2004-09-23 
17:43:57.000000000 +0100
@@ -2007,7 +2007,8 @@
  	if (port->flags & UPF_BOOT_AUTOCONF) {
  		port->type = PORT_UNKNOWN;
  		port->ops->config_port(port, flags);
-	}
+	} else
+                port->ops->request_port(port);

  	if (port->type != PORT_UNKNOWN) {
  		unsigned long flags;

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-24  8:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-24  8:23 Request resources if not autoconfiguring new ports David Vrabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).