* pxa27x/spitz: serials in recent kernels
@ 2011-03-15 19:21 Pavel Machek
[not found] ` <AANLkTikJD3+HSoHbq2BxAyYbtGik8QizuRv=rkPEtJXN@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2011-03-15 19:21 UTC (permalink / raw)
To: rpurdie, lenz, kernel list, arminlitzel, Cyril Hrubis,
thommycheck, linux-arm-kernel, dbaryshkov, omegamoon,
eric.y.miao, utx, zaurus-devel, Marek Vasut
Hi!
I cculd not get serial port to work in recent kernels (2.6.35 was
oldest I tried). I know they are little used but still very useful for
debugging.
Is there some special config that needs to be done?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <AANLkTikJD3+HSoHbq2BxAyYbtGik8QizuRv=rkPEtJXN@mail.gmail.com>]
* 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels) [not found] ` <AANLkTikJD3+HSoHbq2BxAyYbtGik8QizuRv=rkPEtJXN@mail.gmail.com> @ 2011-04-12 19:39 ` Pavel Machek 2011-04-12 20:39 ` [Zaurus-devel] " Dmitry Eremin-Solenikov 0 siblings, 1 reply; 5+ messages in thread From: Pavel Machek @ 2011-04-12 19:39 UTC (permalink / raw) To: Andrea Adami; +Cc: zaurus-devel, kernel list Hi! > > I cculd not get serial port to work in recent kernels (2.6.35 was > > oldest I tried). I know they are little used but still very useful for > > debugging. > > > > Is there some special config that needs to be done? > > Pavel > > I have output on ttyS0 using the Sharp cable, never had issues. > Remember that bootloader is 9600n8 while kernels are usually 115200n8. Ok, I know what is going on. I need both PXA_SERIAL and 8250... and these two don't go well together. I tried: CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250_CONSOLE is not set CONFIG_SERIAL_8250_CS=y CONFIG_SERIAL_8250_NR_UARTS=1 CONFIG_SERIAL_8250_RUNTIME_UARTS=0 # CONFIG_SERIAL_8250_EXTENDED is not set # # Non-8250 serial port support # # CONFIG_SERIAL_MAX3100 is not set # CONFIG_SERIAL_MAX3107 is not set CONFIG_SERIAL_PXA=y CONFIG_SERIAL_PXA_CONSOLE=y CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y (BTW should 8250_RUNTIME_UARTS be called "boottime uarts"? That's what help says). ...but no luck. As soon as I enable 8250, pxa serials stop working :-(. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Zaurus-devel] 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels) 2011-04-12 19:39 ` 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels) Pavel Machek @ 2011-04-12 20:39 ` Dmitry Eremin-Solenikov 2011-04-13 13:28 ` Pavel Machek 0 siblings, 1 reply; 5+ messages in thread From: Dmitry Eremin-Solenikov @ 2011-04-12 20:39 UTC (permalink / raw) To: Zaurus PDA developers list; +Cc: Pavel Machek, Andrea Adami, kernel list [-- Attachment #1: Type: text/plain, Size: 1382 bytes --] Hello, On Tue, Apr 12, 2011 at 11:39 PM, Pavel Machek <pavel@ucw.cz> wrote: > Hi! > >> > I cculd not get serial port to work in recent kernels (2.6.35 was >> > oldest I tried). I know they are little used but still very useful for >> > debugging. >> > >> > Is there some special config that needs to be done? >> > Pavel >> >> I have output on ttyS0 using the Sharp cable, never had issues. >> Remember that bootloader is 9600n8 while kernels are usually 115200n8. > > Ok, I know what is going on. I need both PXA_SERIAL and 8250... and > these two don't go well together. > > I tried: > > CONFIG_SERIAL_8250=y > # CONFIG_SERIAL_8250_CONSOLE is not set > CONFIG_SERIAL_8250_CS=y > CONFIG_SERIAL_8250_NR_UARTS=1 > CONFIG_SERIAL_8250_RUNTIME_UARTS=0 > # CONFIG_SERIAL_8250_EXTENDED is not set > > # > # Non-8250 serial port support > # > # CONFIG_SERIAL_MAX3100 is not set > # CONFIG_SERIAL_MAX3107 is not set > CONFIG_SERIAL_PXA=y > CONFIG_SERIAL_PXA_CONSOLE=y > CONFIG_SERIAL_CORE=y > CONFIG_SERIAL_CORE_CONSOLE=y > > (BTW should 8250_RUNTIME_UARTS be called "boottime uarts"? That's what > help says). > > ...but no luck. As soon as I enable 8250, pxa serials stop working > :-(. Please try attached patch (then PXA consoles become ttySA0-3) -- With best wishes Dmitry [-- Attachment #2: 0001-pxa-rename-serials-to-reuse-ttySA-naming.patch --] [-- Type: text/x-patch, Size: 1123 bytes --] From a325ef37aae1c155672f1502bc9864c0ee87cbd6 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Date: Tue, 4 Jan 2011 23:33:44 +0300 Subject: [PATCH] pxa: rename serials to reuse ttySA naming Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> --- drivers/tty/serial/pxa.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c index 1102a39..14fb566 100644 --- a/drivers/tty/serial/pxa.c +++ b/drivers/tty/serial/pxa.c @@ -692,7 +692,7 @@ serial_pxa_console_setup(struct console *co, char *options) } static struct console serial_pxa_console = { - .name = "ttyS", + .name = "ttySA", .write = serial_pxa_console_write, .device = uart_console_device, .setup = serial_pxa_console_setup, @@ -729,8 +729,8 @@ struct uart_ops serial_pxa_pops = { static struct uart_driver serial_pxa_reg = { .owner = THIS_MODULE, .driver_name = "PXA serial", - .dev_name = "ttyS", - .major = TTY_MAJOR, + .dev_name = "ttySA", + .major = 204, .minor = 64, .nr = 4, .cons = PXA_CONSOLE, -- 1.7.4.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Zaurus-devel] 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels) 2011-04-12 20:39 ` [Zaurus-devel] " Dmitry Eremin-Solenikov @ 2011-04-13 13:28 ` Pavel Machek 2011-04-13 13:43 ` Dmitry Eremin-Solenikov 0 siblings, 1 reply; 5+ messages in thread From: Pavel Machek @ 2011-04-13 13:28 UTC (permalink / raw) To: Dmitry Eremin-Solenikov Cc: Zaurus PDA developers list, Andrea Adami, kernel list Hi! > >> > I cculd not get serial port to work in recent kernels (2.6.35 was > >> > oldest I tried). I know they are little used but still very useful for > >> > debugging. > >> > > >> > Is there some special config that needs to be done? > >> > Pavel > >> > >> I have output on ttyS0 using the Sharp cable, never had issues. > >> Remember that bootloader is 9600n8 while kernels are usually 115200n8. > > > > Ok, I know what is going on. I need both PXA_SERIAL and 8250... and > > these two don't go well together. ... > > ...but no luck. As soon as I enable 8250, pxa serials stop working > > :-(. > > Please try attached patch (then PXA consoles become ttySA0-3) Thanks, this works for me. Can we get it into the tree? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Zaurus-devel] 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels) 2011-04-13 13:28 ` Pavel Machek @ 2011-04-13 13:43 ` Dmitry Eremin-Solenikov 0 siblings, 0 replies; 5+ messages in thread From: Dmitry Eremin-Solenikov @ 2011-04-13 13:43 UTC (permalink / raw) To: Pavel Machek; +Cc: Zaurus PDA developers list, Andrea Adami, kernel list On Wed, Apr 13, 2011 at 5:28 PM, Pavel Machek <pavel@ucw.cz> wrote: > Hi! > >> >> > I cculd not get serial port to work in recent kernels (2.6.35 was >> >> > oldest I tried). I know they are little used but still very useful for >> >> > debugging. >> >> > >> >> > Is there some special config that needs to be done? >> >> > Pavel >> >> >> >> I have output on ttyS0 using the Sharp cable, never had issues. >> >> Remember that bootloader is 9600n8 while kernels are usually 115200n8. >> > >> > Ok, I know what is going on. I need both PXA_SERIAL and 8250... and >> > these two don't go well together. > ... >> > ...but no luck. As soon as I enable 8250, pxa serials stop working >> > :-(. >> >> Please try attached patch (then PXA consoles become ttySA0-3) > > Thanks, this works for me. Can we get it into the tree? This depends on Eric and Russell. IIRC such patches were declined before. -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-04-13 13:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-15 19:21 pxa27x/spitz: serials in recent kernels Pavel Machek
[not found] ` <AANLkTikJD3+HSoHbq2BxAyYbtGik8QizuRv=rkPEtJXN@mail.gmail.com>
2011-04-12 19:39 ` 8250 vs pxa_serial (was Re: pxa27x/spitz: serials in recent kernels) Pavel Machek
2011-04-12 20:39 ` [Zaurus-devel] " Dmitry Eremin-Solenikov
2011-04-13 13:28 ` Pavel Machek
2011-04-13 13:43 ` Dmitry Eremin-Solenikov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®