ARM: davinci_all_defconfig: set CONFIG_DAVINCI_WATCHDOG=y
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
@@ -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
Quoted 10 lines · David Lechner
This changes
CONFIG_DAVINCI_WATCHDOGfrom a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit0808d3260456("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.Cc Sekhar Nori <[email protected]>Suggested-by Adam Ford <[email protected]>Signed-off-by David Lechner <[email protected]>
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
Quoted 8 lines · Sekhar Nori
Quoted 7 lines · David Lechner
This changes
CONFIG_DAVINCI_WATCHDOGfrom a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit0808d3260456("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
Cc Sekhar Nori <[email protected]>Suggested-by Adam Ford <[email protected]>Signed-off-by David Lechner <[email protected]>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
Quoted 17 lines · Adam Ford
Quoted 8 lines · Sekhar Nori
Quoted 7 lines · David Lechner
This changes
CONFIG_DAVINCI_WATCHDOGfrom a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit0808d3260456("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
Cc Sekhar Nori <[email protected]>Suggested-by Adam Ford <[email protected]>Signed-off-by David Lechner <[email protected]>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
Sekhar Nori
AppliedQuoted 3 lines · David Lechner
This changes
CONFIG_DAVINCI_WATCHDOGfrom a module to a compiled-in option. Since the reset function has been moved out of the mach code in commit0808d3260456("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.
Cc Sekhar Nori <[email protected]>Suggested-by Adam Ford <[email protected]>Signed-off-by David Lechner <[email protected]>
Applied to v4.17/defconfig
Thanks,
Sekhar