From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Pavel Machek <pavel@ucw.cz>
Cc: Dave Jones <davej@redhat.com>,
Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Paul Dickson <paul@permanentmail.com>,
linux-kernel@vger.kernel.org, jeremy@goop.org
Subject: Re: fixing serial console over suspend [was Re: Bisects that are neither good nor bad]
Date: Fri, 9 Jun 2006 09:51:34 +0100 [thread overview]
Message-ID: <20060609085134.GB25497@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20060609084600.GF18084@elf.ucw.cz>
On Fri, Jun 09, 2006 at 10:46:00AM +0200, Pavel Machek wrote:
> On P? 09-06-06 09:42:34, Russell King wrote:
> > On Fri, Jun 09, 2006 at 10:38:33AM +0200, Pavel Machek wrote:
> > > > The serial layer does _not_ have access to the "current" termios
> > > > settings due to the layering by the tty subsystem. If the serial
> > > > port being used by serial console has been opened once by the user,
> > > > but is closed at the moment when a suspend/resume cycle occurs,
> > > > the serial layer and lower level drivers do not have access to the
> > > > baud rate.
> > >
> > > Could serial layer just cache "last baud rate" in some kind of
> > > software shadow register? Yes, it is slightly ugly, but should do the trick.
> >
> > That's not a new suggestion. How do you deal with the case where
> > you have console on two or more different serial ports? That's
> > the problem with this approach.
>
> Well, each of serial ports has hardware baud_rate register. I'll need
> software baud_rate_shadow for every serial port, setting
> baud_rate_shadow each time baud_rate is set. During resume, I restore
> baud_rate from baud_rate_shadow for each serial port.
>
> What am I missing?
What about the other parameters like the bit size, number of stop bits,
etc?
> > The only sane solution is for the tty layer to be adjusted to allow
> > suspend/resume support for consoles.
>
> Well, solution above is likely to be ugly, but even ugly patch would
> help people debug s-to-RAM.
Why not investigate doing the proper solution? Since you're obviously
one of the ones who is able to reproduce the situation (I'm not), you're
perfectly placed to develop and test such a solution, and I think it's
well within your capability.
--
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:[~2006-06-09 8:51 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-28 21:02 Resume stops working between 2.6.16 and 2.6.17-rc1 on Dell Inspiron 6000 Paul Dickson
2006-05-28 21:08 ` Bisects that are neither good nor bad Paul Dickson
2006-05-28 21:24 ` Rafael J. Wysocki
2006-05-28 21:34 ` Dave Jones
2006-05-29 11:37 ` Sanjoy Mahajan
2006-05-29 14:52 ` Dave Jones
2006-05-30 15:29 ` Pavel Machek
2006-06-03 8:58 ` Rafael J. Wysocki
2006-06-03 9:11 ` Russell King
2006-06-09 8:38 ` Pavel Machek
2006-06-09 8:42 ` Russell King
2006-06-09 8:46 ` fixing serial console over suspend [was Re: Bisects that are neither good nor bad] Pavel Machek
2006-06-09 8:51 ` Russell King [this message]
2006-06-11 14:08 ` Bisects that are neither good nor bad Russell King
2006-05-31 2:45 ` Paul Dickson
2006-05-28 22:02 ` Paul Dickson
2006-05-29 0:12 ` Paul Dickson
2006-05-28 21:11 ` Resume stops working between 2.6.16 and 2.6.17-rc1 on Dell Inspiron 6000 Arjan van de Ven
2006-05-28 21:29 ` Paul Dickson
2006-05-28 21:49 ` Mark Lord
2006-05-29 0:21 ` Paul Dickson
2006-05-29 0:40 ` Andrew Morton
2006-05-29 1:47 ` Paul Dickson
2006-05-29 3:02 ` Mark Lord
2006-05-29 15:12 ` Pavel Machek
2006-05-31 2:38 ` Paul Dickson
2006-05-29 3:03 ` Mark Lord
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=20060609085134.GB25497@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=davej@redhat.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paul@permanentmail.com \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
--cc=sanjoy@mrao.cam.ac.uk \
/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
Powered by JetHome