diff mbox series

watchdog: Kconfig: enable MTK watchdog

Message ID 20211103230354.915658-1-khilman@baylibre.com (mailing list archive)
State New, archived
Headers show
Series watchdog: Kconfig: enable MTK watchdog | expand

Commit Message

Kevin Hilman Nov. 3, 2021, 11:03 p.m. UTC
Enable CONFIG_MEDIATEK_WATCHDOG when ARCH_MEDIATEK is enabled.

On some platforms (e.g. mt8183-pumpkin), watchdog is enabled by
bootloader, so kernel driver needs to be enabled to avoid watchdog
firing and causing reboot part way through kernel boot.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
---
 drivers/watchdog/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Guenter Roeck Nov. 4, 2021, 12:33 a.m. UTC | #1
On 11/3/21 4:03 PM, Kevin Hilman wrote:
> Enable CONFIG_MEDIATEK_WATCHDOG when ARCH_MEDIATEK is enabled.
> 
> On some platforms (e.g. mt8183-pumpkin), watchdog is enabled by
> bootloader, so kernel driver needs to be enabled to avoid watchdog
> firing and causing reboot part way through kernel boot.
> 
> Signed-off-by: Kevin Hilman <khilman@baylibre.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>   drivers/watchdog/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index bf59faeb3de1..00bebbb8f877 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -836,6 +836,7 @@ config MESON_WATCHDOG
>   config MEDIATEK_WATCHDOG
>   	tristate "Mediatek SoCs watchdog support"
>   	depends on ARCH_MEDIATEK || COMPILE_TEST
> +	default ARCH_MEDIATEK
>   	select WATCHDOG_CORE
>   	select RESET_CONTROLLER
>   	help
>
diff mbox series

Patch

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index bf59faeb3de1..00bebbb8f877 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -836,6 +836,7 @@  config MESON_WATCHDOG
 config MEDIATEK_WATCHDOG
 	tristate "Mediatek SoCs watchdog support"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
+	default ARCH_MEDIATEK
 	select WATCHDOG_CORE
 	select RESET_CONTROLLER
 	help