linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stanislav Brabec <sbrabec@suse.cz>
To: Daniel Drake <dsd@laptop.org>
Cc: linux-serial@vger.kernel.org, jason77.wang@gmail.com,
	alan@linux.intel.com, arnd@arndb.de
Subject: Re: 8250 Serial console unusable
Date: Tue, 30 Nov 2010 15:46:14 +0100	[thread overview]
Message-ID: <1291128374.18297.75.camel@hammer.site> (raw)
In-Reply-To: <AANLkTimGPcuksdcwq73rDT6V1Xpyjm2qBGVc5MTgej7t@mail.gmail.com>

Daniel Drake wrote:
> It
> looks like Stanislav works with machines with a similar requirement,
> which I guess suffer the same problem in Linus master:

Zaurus machines. Well, the current vanilla does not work with
no_console_suspend on Zaurus as well.

Changing
if (console_suspend_enabled || !uart_console(uport)) {
in resume process just above the line
/* Protected by port mutex for now */
to
if (1) {
makes resume working with no_console_suspend again. So one of lines
inside does something important.

I never sent this patch to the list, because I suspect, that would break
other machines in this simple stupid form.

> What's the right way to go around solving this, that doesn't step on
> anyones toes?

Try to find exact instruction that needs to be called. See the topic
"[PATCH RESEND 0/2] two serial_core suspend/resume fixes".

> From an ignorant high-level perspective, it doesn't sound unreasonable
> or complicated to simply unconditionally restore the correct port
> configuration on resume. I'm having trouble understanding the argument
> against this perspective presented in commit 891b9dd10.

You cannot do it. There may exist a hardware, where resume depends on
suspend previously called. But it does not happen with
no_console_suspend. You have to find a subset, that is able to set
console to working state without suspend/resume disparity.

Maybe adding non-stopping save/restore in addition to suspend/resume in
all drivers may be cleaner solution.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec@suse.cz
Lihovarská 1060/12           tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2010-11-30 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 17:27 8250 Serial console unusable Daniel Drake
2010-11-30 14:46 ` Stanislav Brabec [this message]
2010-12-03 14:38   ` Daniel Drake

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=1291128374.18297.75.camel@hammer.site \
    --to=sbrabec@suse.cz \
    --cc=alan@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=dsd@laptop.org \
    --cc=jason77.wang@gmail.com \
    --cc=linux-serial@vger.kernel.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).