From: heiko@sntech.de (Heiko Stübner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] serial: 8250_dw: Handle no_console_suspend when uart loses state
Date: Mon, 17 Nov 2014 10:20:28 +0100 [thread overview]
Message-ID: <4280750.Abh5aXOcW7@diego> (raw)
In-Reply-To: <5469B828.90401@intel.com>
Am Montag, 17. November 2014, 09:56:08 schrieb Loic Poulain:
> > In certain suspend modes on certain boards the 8250 UART may lose
> > state when the device goes to suspend. If we're using
> > no_console_suspend this can cause lots of problems during resume.
> >
> > Let's cache the basic UART config registers at suspend time and if we
> > notice that the UART loses state (by looking at a canary stored in the
> > scratch register) we'll restore it.
>
> If I'm not wrong, it's already done in acpi_lpss suspend/resume (for
> 8250_dw).
> Commit c78b0830667a7e7c1f0ca65b76b33166a84806b3.
It looks like it, but of course only takes into account devices probed via
acpi, missing the devices probed via devicetree.
So it looks like we need Doug's solution somehow, question would be if it
should be excluded on acpi platforms.
Heiko
next prev parent reply other threads:[~2014-11-17 9:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-15 0:32 [PATCH] serial: 8250_dw: Handle no_console_suspend when uart loses state Doug Anderson
2014-11-17 8:56 ` Loic Poulain
2014-11-17 9:20 ` Heiko Stübner [this message]
2014-11-28 12:09 ` Heikki Krogerus
2014-11-28 12:30 ` Andy Shevchenko
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=4280750.Abh5aXOcW7@diego \
--to=heiko@sntech.de \
--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).