Skip to contentSkip to conversation

ARM: configs: aspeed: Add watchdog sysfs

PATCH In review Eddie James 2 participants 2 messages May 3, 2018 – May 7, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: configs: aspeed: Add watchdog sysfs

This kernel config adds sysfs entries for watchdog devices. This is needed in order to access the bootstatus sysfs file that will indicate whether or not the BMC has tripped the watchdog and subsequently switched sides.

---
 arch/arm/configs/aspeed_g4_defconfig | 1 +
 arch/arm/configs/aspeed_g5_defconfig | 1 +
 2 files changed, 2 insertions(+)
arch/arm/configs/aspeed_g4_defconfig +1 -0
index 74d9343..ed1c470 100644
@@ -219,6 +219,7 @@ CONFIG_SCHED_STACK_END_CHECK=y
 CONFIG_FUNCTION_TRACER=y
 # CONFIG_TRACING_EVENTS_GPIO is not set
 CONFIG_DEBUG_USER=y
+CONFIG_WATCHDOG_SYSFS=y
 # CONFIG_CRYPTO_ECHAINIV is not set
 # CONFIG_CRYPTO_HW is not set
 # CONFIG_XZ_DEC_X86 is not set
arch/arm/configs/aspeed_g5_defconfig +1 -0
index 538e30b..66450bd 100644
@@ -222,6 +222,7 @@ CONFIG_SCHED_STACK_END_CHECK=y
 CONFIG_FUNCTION_TRACER=y
 # CONFIG_TRACING_EVENTS_GPIO is not set
 CONFIG_DEBUG_USER=y
+CONFIG_WATCHDOG_SYSFS=y
 # CONFIG_CRYPTO_ECHAINIV is not set
 # CONFIG_CRYPTO_HW is not set
 # CONFIG_XZ_DEC_X86 is not set
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw

Hi Eddie,

Quoted 28 lines · Eddie James

This kernel config adds sysfs entries for watchdog devices. This is needed in order to access the bootstatus sysfs file that will indicate whether or not the BMC has tripped the watchdog and subsequently switched sides.

---
 arch/arm/configs/aspeed_g4_defconfig | 1 +
 arch/arm/configs/aspeed_g5_defconfig | 1 +
 2 files changed, 2 insertions(+)
arch/arm/configs/aspeed_g4_defconfig +1 -0
index 74d9343..ed1c470 100644
@@ -219,6 +219,7 @@ CONFIG_SCHED_STACK_END_CHECK=y
 CONFIG_FUNCTION_TRACER=y
 # CONFIG_TRACING_EVENTS_GPIO is not set
 CONFIG_DEBUG_USER=y
+CONFIG_WATCHDOG_SYSFS=y
 # CONFIG_CRYPTO_ECHAINIV is not set
 # CONFIG_CRYPTO_HW is not set
 # CONFIG_XZ_DEC_X86 is not set
arch/arm/configs/aspeed_g5_defconfig +0 -0
index 538e30b..66450bd 100644

arch/arm/configs/aspeed_g5_defconfig CONFIG_SCHED_STACK_END_CHECK=y · line 225

Quoted 4 lines
arch/arm/configs/aspeed_g5_defconfig +1 -0
@@ -222,6 +222,7 @@ CONFIG_SCHED_STACK_END_CHECK=y
 CONFIG_FUNCTION_TRACER=y
 # CONFIG_TRACING_EVENTS_GPIO is not set
 CONFIG_DEBUG_USER=y
+CONFIG_WATCHDOG_SYSFS=y

When you update a defconfig you must follow these steps:

make aspeed_g5_defconfig

enable the options you require

make savedefconig
cp aspeed_g5_defconfig arc/arm/boot/config/

And create your commit based on that.

I have done this for you in this case and applied the result to dev-4.13.

Cheers,

Joel