ath79: read back reset register
authorDavid Bauer <mail@david-bauer.net>
Tue, 9 Jan 2024 19:52:56 +0000 (20:52 +0100)
committerDavid Bauer <mail@david-bauer.net>
Thu, 11 Jan 2024 00:43:20 +0000 (01:43 +0100)
commitcdc907abedf1ad0d17cc88fd33d35a3ef3f8fc75
treecfce9f2104da4a3cb19d0921b4d9e0c84cdd401b
parent5ad05681f2de00c8c6d6449df2b958b0838dbc1a
ath79: read back reset register

Read back the reset register in order to flush the cache. This fixes
spurious reboot hangs on TP-Link TL-WDR3600 and TL-WDR4300 with Zentel
DRAM chips.

This issue was fixed in the past, but switching to the reset-driver
specific implementation removed the cache barrier which was previously
implicitly added by reading back the register in question.

Link: https://github.com/freifunk-gluon/gluon/issues/2904
Link: https://github.com/openwrt/openwrt/issues/13043
Link: https://dev.archive.openwrt.org/ticket/17839
Link: f8a7bfe1cb2c ("MIPS: ath79: fix system restart")

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 2fe8ecd880396b5ae25fe9583aaa1d71be0b8468)
target/linux/ath79/patches-5.15/100-reset-ath79-read-back-reset-register.patch [new file with mode: 0644]