[PATCH linux dev-4.13] ARM: configs: aspeed: Add watchdog sysfs

Joel Stanley joel at jms.id.au
Mon May 7 21:39:30 AEST 2018


Hi Eddie,

On 4 May 2018 at 00:53, Eddie James <eajames at linux.vnet.ibm.com> wrote:
> 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.
>
> Signed-off-by: Eddie James <eajames at linux.vnet.ibm.com>
> ---
>  arch/arm/configs/aspeed_g4_defconfig | 1 +
>  arch/arm/configs/aspeed_g5_defconfig | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/arch/arm/configs/aspeed_g4_defconfig b/arch/arm/configs/aspeed_g4_defconfig
> index 74d9343..ed1c470 100644
> --- a/arch/arm/configs/aspeed_g4_defconfig
> +++ b/arch/arm/configs/aspeed_g4_defconfig
> @@ -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
> diff --git a/arch/arm/configs/aspeed_g5_defconfig b/arch/arm/configs/aspeed_g5_defconfig
> index 538e30b..66450bd 100644
> --- a/arch/arm/configs/aspeed_g5_defconfig
> +++ b/arch/arm/configs/aspeed_g5_defconfig
> @@ -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


More information about the openbmc mailing list