linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* PXA/8250 UART Conflicts
@ 2010-05-11 15:00 Michael Cashwell
  2010-05-11 16:12 ` Russell King - ARM Linux
  2010-05-11 16:29 ` Marc Zyngier
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Cashwell @ 2010-05-11 15:00 UTC (permalink / raw)
  To: linux-arm-kernel

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".)

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?

Any pearls of wisdom would be welcome.

-Mike

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-14 18:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-05-14 18:51   ` Michael Cashwell

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).