Revert "ath79: remove GPIO driver earlier registration hack"
authorJoan Moreau <jom@grosjo.net>
Tue, 30 Jul 2024 14:20:20 +0000 (14:20 +0000)
committerRobert Marko <robimarko@gmail.com>
Fri, 2 Aug 2024 17:46:49 +0000 (19:46 +0200)
commit226af7a77cc7398b126267c66106c593a49d8ad2
tree4877b9dfaa4e16348f4ddc9d0e0409fc4de5d8b1
parentca4469045f6a4845dbf8aeabd4b04b421209f66e
Revert "ath79: remove GPIO driver earlier registration hack"

This reverts commit f444dea428cdcafd78fb75004a942da24cabd48c.

It seems that some devices using GPIO WDT have really short WDT timeouts
and when using module_platform_driver registration it happens too late
and thus WDT will timeout and reset the board.

So, for now lets return the postcore_initcall hack for now.

Fixes: f444dea428cd ("ath79: remove GPIO driver earlier registration hack")
Signed-off-by: Joan Moreau <jom@grosjo.net>
Link: https://github.com/openwrt/openwrt/pull/16035
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/patches-6.6/340-register_gpio_driver_earlier.patch [new file with mode: 0644]