Re: [PATCH] asm/io: Correct output operand specification of the MMIO write* routines

From: Michael Matz
Date: Thu Apr 18 2019 - 08:16:50 EST


Hi,

On Wed, 17 Apr 2019, Linus Torvalds wrote:

> So I see no upside to changing it.

As long as the memory clobber stays (and it can't be removed in the
general case, as you say) the change has no practical effect.

<outsider>
It does have a psychological upside, though: people won't continue to
wonder why the asm doesn't precisely specify what it does, and instead
only declares a memory-read while clearly being a memory write.
Normally, with asms, leaving nothing to wonder about is a good thing.
</outsider>


Ciao,
Michael.