Re: [PATCH] samples: rust: fix endianness issue in rust_driver_pci
From: Miguel Ojeda
Date: Thu Nov 13 2025 - 03:27:27 EST
On Thu, Nov 13, 2025 at 9:22 AM Danilo Krummrich <dakr@xxxxxxxxxx> wrote:
>
> I don't think we should do anything else; the cases where we need to deal with
> big-endian devices for MMIO should be extremely rare -- rare enough that there
> aren't even corresponding *_be() implementations for all architectures.
>
> Given that, I think the proper fix is to drop the existing u32::from_le() call
> (that ended up in the sample driver by accident) and properly document the
> little-endian assumption of the MMIO backend.
Sounds good then, thanks!
Cheers,
Miguel