All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux dev-4.13] ARM: configs: aspeed: Add watchdog sysfs
@ 2018-05-03 15:23 Eddie James
  2018-05-07 11:39 ` Joel Stanley
  0 siblings, 1 reply; 2+ messages in thread
From: Eddie James @ 2018-05-03 15:23 UTC (permalink / raw)
  To: openbmc; +Cc: joel, 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.

Signed-off-by: Eddie James <eajames@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
 # CONFIG_CRYPTO_ECHAINIV is not set
 # CONFIG_CRYPTO_HW is not set
 # CONFIG_XZ_DEC_X86 is not set
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH linux dev-4.13] ARM: configs: aspeed: Add watchdog sysfs
  2018-05-03 15:23 [PATCH linux dev-4.13] ARM: configs: aspeed: Add watchdog sysfs Eddie James
@ 2018-05-07 11:39 ` Joel Stanley
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Stanley @ 2018-05-07 11:39 UTC (permalink / raw)
  To: Eddie James; +Cc: OpenBMC Maillist

Hi Eddie,

On 4 May 2018 at 00:53, Eddie James <eajames@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@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-07 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 15:23 [PATCH linux dev-4.13] ARM: configs: aspeed: Add watchdog sysfs Eddie James
2018-05-07 11:39 ` Joel Stanley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.