]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rtl838x: fix non-functional reboot 22384/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 11 Mar 2026 20:02:51 +0000 (21:02 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 13 Mar 2026 00:39:30 +0000 (01:39 +0100)
commit1353227ad391b0008b8365eebd38495e01ed7577
tree3554404d3ad40a20a96cf2a8f01e04ece8f9b6cf
parent8aac058ef0a58f394a920e5c39ac0390363c18f9
realtek: rtl838x: fix non-functional reboot

RTL838x devices cannot reboot if the flash controller is driven in
4 byte mode. Unitl fdc3776 ("realtek: pcs: fix PLL_CML_CTRL for
serdes 0/1") this bit was luckily cleared by a coding error. Since
then the device cannot be rebooted anymore.

Looking at the SDK one can see that this bit is reset short before
the reboot happens. But we might need that in critical situations
where there is no chance to do it right in time. As the RTL838x
always ran with the bit disabled restore the old behaviour. This
time implement it as a documented quirk so it does not get lost.

Fixes: fdc3776 ("realtek: pcs: fix PLL_CML_CTRL for serdes 0/1")
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
(cherry-pick from commit b995f318b24f23ec1b594eb89221b78c0e50942e)
Link: https://github.com/openwrt/openwrt/pull/22384
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/arch/mips/rtl838x/prom.c