]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: arch: rtl-otto: change to __raw reads and writes
authorRustam Adilov <adilov@tutamail.com>
Sun, 3 May 2026 09:35:25 +0000 (14:35 +0500)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 1 Jun 2026 17:17:58 +0000 (19:17 +0200)
commita03e379f5ae0cb75fdd45f6318e00caa54f63449
tree3e96b4823d1a5d986e290886824cf3868a3f9ce7
parent82ddc472d722d2d9befb1a1420055ababe7c0df1
realtek: arch: rtl-otto: change to __raw reads and writes

The realtek target uses the readl and writel for register access to
switchcore and SoC bases. This works but if at some point the target
wants to enable CONFIG_SWAP_IO_SPACE, the register access breaks as
readl/writel would be operating in little endian as opposed to native.

Fix it by replacing the readl/writel used in register access macros to
a __raw variant which aligns with what upstream use for native endian
access to registers.

Signed-off-by: Rustam Adilov <adilov@tutamail.com>
Link: https://github.com/openwrt/openwrt/pull/23206
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/files-6.18/arch/mips/include/asm/mach-rtl-otto/mach-rtl-otto.h
target/linux/realtek/files-6.18/arch/mips/rtl-otto/prom.c