]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: pci: document Bar's endianness conversion
authorMarko Turk <mt@markoturk.info>
Wed, 10 Dec 2025 11:25:35 +0000 (12:25 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 17 Dec 2025 17:05:27 +0000 (18:05 +0100)
Document that the Bar's MMIO backend always assumes little-endian
devices and that its operations automatically convert to CPU endianness.

Signed-off-by: Marko Turk <mt@markoturk.info>
Link: https://lore.kernel.org/lkml/DE7F6RR1NAKW.3DJYO44O73941@kernel.org/
Link: https://patch.msgid.link/20251210112503.62925-1-mt@markoturk.info
[ Drop unrelated spelling fix. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/pci/io.rs

index 0d55c3139b6f875734333147617916f92e9857f4..c250b7c29d2dbf33af8b5dd183cd7d340493561a 100644 (file)
@@ -18,6 +18,9 @@ use core::ops::Deref;
 
 /// A PCI BAR to perform I/O-Operations on.
 ///
+/// I/O backend assumes that the device is little-endian and will automatically
+/// convert from little-endian to CPU endianness.
+///
 /// # Invariants
 ///
 /// `Bar` always holds an `IoRaw` inststance that holds a valid pointer to the start of the I/O