From: Russell King <rmk+lkml@arm.linux.org.uk>
To: david-b@pacbell.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch 2.6.13-git] 8250 tweaks
Date: Tue, 12 Jul 2005 15:00:40 +0100 [thread overview]
Message-ID: <20050712150040.B30358@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20050712133043.976AC85E6C@adsl-69-107-32-110.dsl.pltn13.pacbell.net>; from david-b@pacbell.net on Tue, Jul 12, 2005 at 06:30:43AM -0700
On Tue, Jul 12, 2005 at 06:30:43AM -0700, david-b@pacbell.net wrote:
> > > ISTR that having NR_UARTS bigger just produced different messages...
> >
> > Which were?
>
> Error code 22 instead of 28, as I recall. And as I said, the
> appearance of any (bogus error) message is a "recent" change.
> Two months ago, there were no messages at all.
We now have multiple 8250 platform devices. I'm sure folk would
want to know if one of their serial ports fails to register. Hence
the message. It's not bogus!
22 is EINVAL, which will occur if uartclk is zero, or if the port was
trying to be registered was already registered (not possible.)
So, you're asking the driver to register a port with zero MMIO, IO and
clock values... Ok, you're asking the driver to do something that is
invalid. Sounds like its the platform code which is doing the bogus
things.
I don't see why you can't just pass those that you want and no more.
Either build the table dynamically with just the ports that you want
listed and the rest completely zeroed, or register several platform
devices, one for each port.
You don't need any special hacks in the 8250 driver to "support" this.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
next prev parent reply other threads:[~2005-07-12 14:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-12 2:22 [patch 2.6.13-git] 8250 tweaks David Brownell
2005-07-12 7:19 ` Russell King
2005-07-12 9:14 ` Russell King
2005-07-12 10:25 ` david-b
2005-07-12 11:08 ` Russell King
2005-07-12 11:32 ` david-b
2005-07-12 12:01 ` Russell King
2005-07-12 13:30 ` david-b
2005-07-12 14:00 ` Russell King [this message]
2005-07-13 4:55 ` Sam Song
2005-07-13 6:12 ` Russell King
2005-07-13 10:51 ` Sam Song
2005-07-13 12:48 ` Russell King
2005-07-14 7:12 ` Sam Song
2005-07-14 10:42 ` Russell King
2005-07-15 5:11 ` Sam Song
2005-07-16 8:43 ` Russell King
2005-07-16 10:12 ` Sam Song
2005-07-16 10:15 ` Russell King
2005-07-16 12:31 ` Sam Song
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=20050712150040.B30358@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
/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