mbox series

[v2,0/2] watchdog/hpwdt: Enable hpwdt for ARM64 platforms

Message ID 20220820202821.1263837-1-jerry.hoemann@hpe.com
Headers show
Series watchdog/hpwdt: Enable hpwdt for ARM64 platforms | expand

Message

Jerry Hoemann Aug. 20, 2022, 8:28 p.m. UTC
Enable hpwdt for the rl300, an ARM64 based platform.


Patch 1: watchdog/hpwdt.c: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING

ARM64 does not support NMI and does not have <asm/nmi.h>.  Include
nmi.h only if CONFIG_HPWDT_NMI_DECODING is defined.

Patch 2: watchdog/Kconfig:  Allow hpwdt.c to be built for ARM64.

Allow hpwdt.c to be built for (ARM64 || X86) as this part of hwpdt doesn't
use NMI.

Make HPWDT_NMI_DECODING dependent upon X86 as NMI handlers are specific
to X86 platforms.


== Changes for v2 ==
Update patch documentation.




Jerry Hoemann (2):
  watchdog/hpwdt: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING
  watchdog: Enable HP_WATCHDOG for ARM64 systems.

 drivers/watchdog/Kconfig | 4 ++--
 drivers/watchdog/hpwdt.c | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

Comments

Jerry Hoemann Aug. 29, 2022, 3:19 p.m. UTC | #1
On Sat, Aug 20, 2022 at 02:28:19PM -0600, Jerry Hoemann wrote:
> Enable hpwdt for the rl300, an ARM64 based platform.
> 

Guenter,

Did you have any questions/comments on version 2 of the patch series?

Thanks

Jerry

> 
> Patch 1: watchdog/hpwdt.c: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING
> 
> ARM64 does not support NMI and does not have <asm/nmi.h>.  Include
> nmi.h only if CONFIG_HPWDT_NMI_DECODING is defined.
> 
> Patch 2: watchdog/Kconfig:  Allow hpwdt.c to be built for ARM64.
> 
> Allow hpwdt.c to be built for (ARM64 || X86) as this part of hwpdt doesn't
> use NMI.
> 
> Make HPWDT_NMI_DECODING dependent upon X86 as NMI handlers are specific
> to X86 platforms.
> 
> 
> == Changes for v2 ==
> Update patch documentation.
> 
> 
> 
> 
> Jerry Hoemann (2):
>   watchdog/hpwdt: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING
>   watchdog: Enable HP_WATCHDOG for ARM64 systems.
> 
>  drivers/watchdog/Kconfig | 4 ++--
>  drivers/watchdog/hpwdt.c | 2 ++
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> -- 
> 2.37.1