]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rt-loader: fix RTL839x/RTL93xx version detection 21994/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 11 Feb 2026 21:08:17 +0000 (22:08 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 13 Feb 2026 11:43:43 +0000 (12:43 +0100)
commit086f1d347811e63487759ced90c5bc5985c86eda
tree4d50beddf3b77dcade1d079bc746c31fba0d8118
parent8b9bd686e7c705dca28849882f53cf416559e1df
realtek: rt-loader: fix RTL839x/RTL93xx version detection

There is a misunderstanding of the chip version detection in the
rt-loader. For all SoCs the data is gathered from the registers
MODEL_NAME_INFO and CHIP_INFO. Sadly the bits are shuffled around
with each hardware. Currently the loader gathers the wrong bits
for RTL839x and RTL93xx. Fix that.

While we are here write the if statements vice versa for better
readability and give some variables better names. Align the
ouput with that from the kernel.

Fixes: ccbff8b ("realtek: add rt-loader (runtime loader)"
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21994
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/image/rt-loader/src/board.c
target/linux/realtek/image/rt-loader/src/main.c