Skip to contentSkip to conversation

ARM: davinci_all_defconfig: set CONFIG_DAVINCI_WATCHDOG=y

PATCH Applied David Lechner 3 participants 5 messages Jan 15, 2018 – Feb 26, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: davinci_all_defconfig: set CONFIG_DAVINCI_WATCHDOG=y

This changes CONFIG_DAVINCI_WATCHDOG from a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit 0808d3260456 ("ARM: davinci: remove watchdog reset") and into the watchdog driver, devices cannot reboot unless the watchdog driver is loaded, so make it a compiled-in option so that we can always reboot, even when modules are not loaded.

---
 arch/arm/configs/davinci_all_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/configs/davinci_all_defconfig +1 -1
index 62f853f..b400670 100644
@@ -138,7 +138,7 @@ CONFIG_POWER_RESET_GPIO=y
 CONFIG_SYSCON_REBOOT_MODE=m
 CONFIG_BATTERY_LEGO_EV3=m
 CONFIG_WATCHDOG=y
-CONFIG_DAVINCI_WATCHDOG=m
+CONFIG_DAVINCI_WATCHDOG=y
 CONFIG_MFD_DM355EVM_MSP=y
 CONFIG_TPS6507X=y
 CONFIG_REGULATOR=y
Signature · 1 line
2.7.4
#1 lore raw
Quoted 10 lines · David Lechner

This changes CONFIG_DAVINCI_WATCHDOG from a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit 0808d3260456 ("ARM: davinci: remove watchdog reset") and into the watchdog driver, devices cannot reboot unless the watchdog driver is loaded, so make it a compiled-in option so that we can always reboot, even when modules are not loaded.

Hmm, we already depend on modules to load correctly for a lot of functionality. Why should reboot be an exception? In general, unless the driver is needed for loading rootfile system, I would keep it as a module.

Thanks,
Sekhar

#2 lore raw
Quoted 8 lines · Sekhar Nori
Quoted 7 lines · David Lechner

This changes CONFIG_DAVINCI_WATCHDOG from a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit 0808d3260456 ("ARM: davinci: remove watchdog reset") and into the watchdog driver, devices cannot reboot unless the watchdog driver is loaded, so make it a compiled-in option so that we can always reboot, even when modules are not loaded.

Quoted 7 lines
Quoted 3 lines

Hmm, we already depend on modules to load correctly for a lot of functionality. Why should reboot be an exception? In general, unless the driver is needed for loading rootfile system, I would keep it as a module.

I would argue that his patch corrects a regression introduced by the patch series. Before the series, 'reboot' worked properly without the watchdog being loaded as a module. With this patch series 'reboot' stops functioning which I would argue is a regression. Making the watchdog part of the kernel fixes the broken reboot regression. I would request it be accepted.

Quoted 3 lines

Thanks,
Sekhar

adam

#3 lore raw
Quoted 17 lines · Adam Ford
Quoted 8 lines · Sekhar Nori
Quoted 7 lines · David Lechner

This changes CONFIG_DAVINCI_WATCHDOG from a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit 0808d3260456 ("ARM: davinci: remove watchdog reset") and into the watchdog driver, devices cannot reboot unless the watchdog driver is loaded, so make it a compiled-in option so that we can always reboot, even when modules are not loaded.

Quoted 7 lines
Quoted 3 lines

Hmm, we already depend on modules to load correctly for a lot of functionality. Why should reboot be an exception? In general, unless the driver is needed for loading rootfile system, I would keep it as a module.

Quoted 6 lines

I would argue that his patch corrects a regression introduced by the patch series. Before the series, 'reboot' worked properly without the watchdog being loaded as a module. With this patch series 'reboot' stops functioning which I would argue is a regression. Making the watchdog part of the kernel fixes the broken reboot regression. I would request it be accepted.

Okay, thats a convincing argument. We are going to shift to watchdog driver for reboot only with v4.17, so will add it to my queue.

Thanks,
Sekhar

Applied
#4 lore raw
In reply to David Lechner
Quoted 3 lines · David Lechner

This changes CONFIG_DAVINCI_WATCHDOG from a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit 0808d3260456 ("ARM: davinci: remove watchdog reset") and into the

commit id adjusted since the said patch did not make it to v4.16

Quoted 7 lines

watchdog driver, devices cannot reboot unless the watchdog driver is loaded, so make it a compiled-in option so that we can always reboot, even when modules are not loaded.

Applied to v4.17/defconfig

Thanks,
Sekhar