Re: [PATCH v2 1/3] asm-generic: split MMIO accessors out of io.h
From: Arnd Bergmann
Date: Sun Sep 20 2026 - 04:14:31 EST
On Sun, Sep 20, 2026, at 03:43, Qingfang Deng wrote:
> Low-level architecture headers can need MMIO accessors without the page
> and I/O mapping dependencies pulled in by asm-generic/io.h. RISC-V keeps
> a separate MMIO header for this reason, including for M-mode timer reads.
>
> Move the raw, ordered and relaxed scalar accessors, their barrier hooks
> and MMIO tracing support into asm-generic/mmio.h. Include the new header
> from asm-generic/io.h and provide the byte-order and MMIOWB dependencies
> needed when it is included directly.
>
> Assisted-by: Codex:gpt-6-astra
> Signed-off-by: Qingfang Deng <qingfang.deng@xxxxxxxxx>
I have no objection to this, but I am not yet following the explanation
regarding how this change helps. From what I can tell, the changes
in patch 2 should work equally well without this.
Arnd