]> www.infradead.org Git - users/jedix/linux-maple.git/commit
watchdog: mediatek: Make sure system reset gets asserted in mtk_wdt_restart()
authorYassine Oudjana <y.oudjana@protonmail.com>
Wed, 6 Nov 2024 10:47:51 +0000 (10:47 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Thu, 7 Nov 2024 10:27:06 +0000 (11:27 +0100)
commita1495a21e0b8aad92132dfcf9c6fffc1bde9d5b2
tree291864bd2fda1b787bf64aabd5b7f30501e7930a
parentf6fe9b628f0ba530b02315fd23429c495b0388d6
watchdog: mediatek: Make sure system reset gets asserted in mtk_wdt_restart()

Clear the IRQ enable bit of WDT_MODE before asserting software reset
in order to make TOPRGU issue a system reset signal instead of an IRQ.

Fixes: a44a45536f7b ("watchdog: Add driver for Mediatek watchdog")
Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241106104738.195968-2-y.oudjana@protonmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/mtk_wdt.c