linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dick Hollenbeck <dick@softplc.com>
To: John Ogness <john.ogness@linutronix.de>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>,
	Petr Mladek <pmladek@suse.com>,
	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Subject: Re: 8250: set_ier(), clear_ier() and the concept of atomic console writes
Date: Fri, 10 Jan 2020 08:43:18 -0600	[thread overview]
Message-ID: <62b9b75c-a245-a643-b715-27947f2ff994@softplc.com> (raw)
In-Reply-To: <87blrcerto.fsf@linutronix.de>

Hi John,

Working with you has been significantly easier than working with other kernel developers,
and I attribute that to your good character.

I managed to get a patch into the 8250 mainline code about 13 years ago, generally it was
not easy, nor should it be.

I do believe that if your patch (yes now yours) is based on the inline function, and that
function does the struct field manipulation, that the 8250 code becomes much cleaner. This
is independent of console requirements.  Maybe that will helplful in moving the mountain
of old crufty serial code in mainline, and maybe you get a merge.  We can only hope.

Having some hours of usage on the patch in the RT space will also help.

I wish I had more time to help get the two trees merged, but I think you could be on the
right track now WRT 8250 serial, and I think your company has more standing in the kernel
community than mine.

Good luck,

Dick


On 1/9/20 6:29 AM, John Ogness wrote:
> After spending time working with and completing your patch, I realized
> that the 8250 atomic console implementation does not need to be so
> complex. Only serial8250_console_write_atomic() needs to track if it
> needs to re-enable IER. Everything else can be as in mainline.
> 
> I will post a patch that reverts the unneeded complexity, which will
> solve your problem.
> 
> Creating a macro for clearing IER is probably a good idea anyway to
> eliminate all the capabilities-checking redundancy. But I'll leave that
> as an excercise for mainline.
> 
> Your patch helped me to realize the insanity in what I was doing. Thank
> you.
> 
> John Ogness


      reply	other threads:[~2020-01-10 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-19 17:47 8250: set_ier(), clear_ier() and the concept of atomic console writes Dick Hollenbeck
2019-12-20  8:04 ` John Ogness
2019-12-20 13:53   ` Dick Hollenbeck
2020-01-09 12:29     ` John Ogness
2020-01-10 14:43       ` Dick Hollenbeck [this message]

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=62b9b75c-a245-a643-b715-27947f2ff994@softplc.com \
    --to=dick@softplc.com \
    --cc=john.ogness@linutronix.de \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=pmladek@suse.com \
    --cc=sergey.senozhatsky@gmail.com \
    /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).