Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Richard Hirst <rhirst@linuxcare.com>
To: parisc-linux@thepuffingroup.com
Subject: [parisc-linux] ttyS00 reported twice
Date: Wed, 31 May 2000 16:41:02 +0100	[thread overview]
Message-ID: <20000531164102.L2253@linuxcare.com> (raw)

There was some discussion on irc yesterday about bootup messages reporting
something like:

Found serial #0 at 0xf0823000, IRQ 538
ttyS00 at iomem 0xf0823800 (irq = 538) is a 16550A
Found serial #1 at 0xf0822000, IRQ 537
ttyS00 at iomem 0xf0822800 (irq = 537) is a 16550A

i.e. both ports reported as ttyS00.  This seems to be a consequence of us
calling register_serial() before rs_init() is called.  In addition there
is a chunk of initialisation in rs_init() that is #ifndef CONFIG_GSC;
that would need to be enabled so that rs_table[].line is initialised,
before we would report ttyS01.

The solution might be to make register_serial() aware of whether rs_init()
has yet been called.  If it hasn't, register_serial() just queues the
struct_serial that was passed in and returns success.  At the end of
rs_init() we call register_serial() again for each item in the queue.
This is similar to what happens with the net devices.

Richard

             reply	other threads:[~2000-05-31 15:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-31 15:41 Richard Hirst [this message]
2000-06-02  6:04 ` [parisc-linux] ttyS00 reported twice Grant Grundler
2000-06-03 20:42   ` Richard Hirst
2000-06-09 16:30   ` [parisc-linux] Bootable CD image Paulius Pazera
2000-06-09 23:01     ` Matt Taggart
2000-06-10  3:44       ` Phil Schwan
2000-06-10  3:57     ` T. Martin

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=20000531164102.L2253@linuxcare.com \
    --to=rhirst@linuxcare.com \
    --cc=parisc-linux@thepuffingroup.com \
    /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