linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: maz@misterjones.org (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: PXA/8250 UART Conflicts
Date: Tue, 11 May 2010 18:29:43 +0200	[thread overview]
Message-ID: <23b656b0c689be0c7ec0faaf37b6a9e6@localhost> (raw)
In-Reply-To: <3117D78B-5443-48B5-88BC-83EEB8F709F9@prograde.net>


On Tue, 11 May 2010 11:00:36 -0400, Michael Cashwell
<mboards@prograde.net>
wrote:
> Greetings,
> 
> I'm using a PXA270-based Gumstix and a provisional 2.6.33.2 kernel to
> explore supporting a dual 8250-like UART chip over i2c for one of our
> hardware guys. But enabling both the 8250 and pxa2xx-uart drivers
conflicts
> at the ttySn level. Both seem to do the following:
> 
> serial_core: uart_register_driver() ->
> tty_io:      tty_register_driver() ->
> char_dev:    register_chrdev_region()
> 
> using the same starting minor number. Thus the first driver gets
> /dev/ttyS0 and up and the rest fail with -EBUSY.
> 
> Am I missing something? Are these drivers just incompatible and Kconfig
> shouldn't let me turn both on? (In fact, doing so kills the console if
it's
> on an internal PXA uart because the 8250 driver loads first. That was
"fun
> with JTAG".)

Both Viper and Zeus platforms faced the exact same problem. On the Viper,
either we let the 8250 driver manage all the serial ports (including the
PXA ports), or we only have the 3 PXA UARTs. On the Zeus, the PXA driver is
simply out of the picture as the console lives on one of the 8250 UARTs.

> I'd like the tty layer to just assign the minor numbers in sequence,
first
> come first served. But I don't see how to get that. Or is there some
> platform way to influence the tty range requested?

I remember a SPARC hack in drivers/serial/8250.c (grep for CONFIG_SPARC)
for the exact same purpose. Not that I would recommend doing so for PXA or
any other platform...

        M.
-- 
Who you jivin' with that Cosmik Debris?

  parent reply	other threads:[~2010-05-11 16:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-11 15:00 PXA/8250 UART Conflicts Michael Cashwell
2010-05-11 16:12 ` Russell King - ARM Linux
2010-05-13 21:40   ` Dmitry Artamonow
2010-05-14 10:09     ` Eric Miao
2010-05-11 16:29 ` Marc Zyngier [this message]
2010-05-14 18:51   ` Michael Cashwell

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=23b656b0c689be0c7ec0faaf37b6a9e6@localhost \
    --to=maz@misterjones.org \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).