Re: [PATCH v2 01/11] rust: io: generalize `MmioRaw` to pointer to arbitrary type
From: Andreas Hindborg
Date: Mon Apr 27 2026 - 11:04:15 EST
Gary Guo <gary@xxxxxxxxxxx> writes:
> Conceptually, `MmioRaw` is just `__iomem *`, so it should work for any
> types. The existing use case where it represents a region of compile-time
> known minimum size and run-time known actual size is moved to a custom
> dynamic-sized type `Region<SIZE>` instead. The `maxsize` method is also
> renamed to `size` to reflect that it is the actual size (not a bound) of
> the region.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
Best regards,
Andreas Hindborg