From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2005-hi6Y0CQ0nG0@public.gmane.org>
To: Pavel Machek <pavel-AlSwsSmVLrQ@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: S3 suspend and serial console
Date: Sat, 05 Feb 2005 14:29:52 +0100 [thread overview]
Message-ID: <4204CA50.8090906@gmx.net> (raw)
In-Reply-To: <42023083.8030508-hi6Y0CQ0nG0@public.gmane.org>
Carl-Daniel Hailfinger schrieb:
> Hi,
>
> on resume from S3, my serial console prints garbage and stops working.
> I assume the BIOS resets the serial port on resume, but I have
> abolutely no idea how to find out what speed and parity the serial
> port has after resume. A quick try of 9600,57600,115200 didn't
> succeed and I now wonder if
> - the kernel could reset the serial ports on resume
> - the kernel could read the current parameters from the UART and print
> them out so I can adjust my serial console.
>
> Oh well... after some investigation, it seems the serial console
> goes back to normal after issuing the command
> echo foo >/dev/ttyS0
>/dev/ttyS0
fixes it, too. So you're right, Pavel.
> Could it be that the UART state is out-of-sync or something like that
> after resume and the serial console code doesn't notice?
If you add an open()/close() to the S3 wakeup code, how can you
find out which device you're supposed to open, that is which device
the serial console is attached to? And how early can you open() the
serial port? Before the "Back to C!" printk?
Once you have a patch, please mail it to me. I'll surely test it ;-)
Regards,
Carl-Daniel
--
http://www.hailfinger.org/
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
next prev parent reply other threads:[~2005-02-05 13:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 14:09 S3 suspend and serial console Carl-Daniel Hailfinger
[not found] ` <42023083.8030508-hi6Y0CQ0nG0@public.gmane.org>
2005-02-05 13:29 ` Carl-Daniel Hailfinger [this message]
[not found] ` <4204CA50.8090906-hi6Y0CQ0nG0@public.gmane.org>
2005-02-05 15:58 ` Karol Kozimor
[not found] ` <20050205155845.GA20131-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2005-02-05 22:06 ` Stefan Seyfried
[not found] ` <20050205220619.GA30739-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2005-02-07 2:16 ` Carl-Daniel Hailfinger
[not found] ` <4206CF63.2090600-hi6Y0CQ0nG0@public.gmane.org>
2005-02-07 14:16 ` Pavel Machek
[not found] ` <20050207141655.GB8040-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-02-07 14:28 ` Carl-Daniel Hailfinger
[not found] ` <42077B07.5090606-hi6Y0CQ0nG0@public.gmane.org>
2005-02-07 14:32 ` Pavel Machek
[not found] ` <20050207143242.GE8040-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-02-07 17:14 ` Carl-Daniel Hailfinger
[not found] ` <4207A211.3000305-hi6Y0CQ0nG0@public.gmane.org>
2005-02-07 22:04 ` Nigel Cunningham
2005-02-08 12:54 ` Pavel Machek
[not found] ` <20050208125453.GA1622-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-02-08 14:02 ` Carl-Daniel Hailfinger
[not found] ` <4208C674.1000002-hi6Y0CQ0nG0@public.gmane.org>
2005-02-08 16:31 ` Pavel Machek
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=4204CA50.8090906@gmx.net \
--to=c-d.hailfinger.devel.2005-hi6y0cq0ng0@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=pavel-AlSwsSmVLrQ@public.gmane.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