diff options
| author | Michael Shych <[email protected]> | 2020-05-04 17:14:24 +0300 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2020-08-05 18:42:44 +0200 |
| commit | 923a3a863ae0c26876d704fb3453069e11ebdcb6 (patch) | |
| tree | 9e44c7153fe0396b33fa3734ad6721f439b35c2e /include/linux/platform_data | |
| parent | 92ed301919932f777713b9172e525674157e983d (diff) | |
platform_data/mlxreg: support new watchdog type with longer timeout period
Add new watchdog type 3 with longer timeout period.
Extend size of health_cntr field that that can be used to init watchdog
timeout period.
Signed-off-by: Michael Shych <[email protected]>
Reviewed-by: Vadim Pasternak <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/mlxreg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h index b8da8aef2446..2c5e58d1d77b 100644 --- a/include/linux/platform_data/mlxreg.h +++ b/include/linux/platform_data/mlxreg.h @@ -43,10 +43,13 @@ * * TYPE1 HW watchdog implementation exist in old systems. * All new systems have TYPE2 HW watchdog. + * TYPE3 HW watchdog can exist on all systems with new CPLD. + * TYPE3 is selected by WD capability bit. */ enum mlxreg_wdt_type { MLX_WDT_TYPE1, MLX_WDT_TYPE2, + MLX_WDT_TYPE3, }; /** @@ -90,7 +93,7 @@ struct mlxreg_core_data { umode_t mode; struct device_node *np; struct mlxreg_hotplug_device hpdev; - u8 health_cntr; + u32 health_cntr; bool attached; }; |