]> git.ipfire.org Git - thirdparty/u-boot.git/commit
m68k: Fix writew(), writel(), readw(), readl() endianness for classic m68k
authorDaniel Palmer <daniel@thingy.jp>
Sat, 16 May 2026 07:39:57 +0000 (16:39 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 22 May 2026 22:47:54 +0000 (16:47 -0600)
commit3e2b261647a78929f494a932fad4e80e607a2fef
tree928e3e60ecd25ccbdfbcc7b6fd6ac9a6ff0fc8a6
parent75a1d7280a72d587d54b6af653234a96210f7177
m68k: Fix writew(), writel(), readw(), readl() endianness for classic m68k

In Linux these are meant to read a little-endian value and swap
to the CPU endian.

In u-boot for m68k this is currently broken and prevents
virtio-mmio from functioning.

This change is only for classic m68k. Coldfire has read big-endian,
no swap for these in u-boot and Linux and existing drivers probably
depend on this.

Tested-by: Angelo Dureghello <angelo@kernel-space.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Acked-by: Angelo Dureghello <angelo@kernel-space.org>
Signed-off-by: Daniel Palmer <daniel@thingy.jp>
arch/m68k/include/asm/io.h