ath79: read back reset register
authorDavid Bauer <mail@david-bauer.net>
Thu, 11 Jan 2024 12:05:39 +0000 (13:05 +0100)
committerDavid Bauer <mail@david-bauer.net>
Thu, 11 Jan 2024 14:36:45 +0000 (15:36 +0100)
commita08553b3b36cc309d3f112208f8451ad85d240eb
treef83c6c4cf5858a2463db917b91e7cb42502e3320
parentdebf4b56cdcc91f9e41bba4a13c4b8370e0a7f1d
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: freifunk-gluon/gluon#2904
Link: openwrt#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.10/100-reset-ath79-read-back-reset-register.patch [new file with mode: 0644]