public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <dvrabel@arcom.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: rmk+serial@arm.linux.org.uk
Subject: Serial: Request resources if not autoconfiguring new ports
Date: Fri, 24 Sep 2004 15:30:46 +0100	[thread overview]
Message-ID: <41542F96.2000700@arcom.com> (raw)

Hi,

This makes serial core 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 now works.

--- 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-24 
15:27:01.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/

                 reply	other threads:[~2004-09-24 14:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=41542F96.2000700@arcom.com \
    --to=dvrabel@arcom.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+serial@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