]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Loongson64: remove ROM Size unit in boardinfo
authorKexy Biscuit <kexybiscuit@aosc.io>
Fri, 10 Jan 2025 17:22:08 +0000 (01:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:28 +0000 (12:50 +0100)
commita3d92e7af72a5c7843ed2000e647c09515ae8fe0
tree2d41dff3facb010db0b8164dfb98e0599ec049b8
parent48a6a4dfa5c8b115c79671d73ac2518397197a45
MIPS: Loongson64: remove ROM Size unit in boardinfo

commit bd2212d658d7659b9d83c7e2f3a06789d4db1e90 upstream.

Per Appendix A.7 in Q/LS 0013-2014 (龙芯CPU开发系统固件与内核接口规范 V2.2,
lit. Loongson DevSys Firmware Kernel Interface Specification V2.2),
interface_info.size is size of this interface, not size of the LEFI BIOS
ROM.

In any case, the BIOS ROM Size just cannot be several kilobytes (KB) on
Loongson64 LEFI platforms.

Reported-by: Mingcong Bai <jeffbai@aosc.io>
Suggested-by: Icenowy Zheng <uwu@icenowy.me>
Fixes: 6c1bfbd9df8c ("MIPS: Loongson64: Add /sys/firmware/lefi/boardinfo")
Cc: stable@vger.kernel.org
Signed-off-by: Kexy Biscuit <kexybiscuit@aosc.io>
Acked-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/loongson64/boardinfo.c