ACPI: watchdog: Set default timeout in probe
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 12 Feb 2020 14:59:41 +0000 (17:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Mar 2020 07:11:48 +0000 (08:11 +0100)
commit87bd74b77531b9eb6ce2f1a160d73e2f9451484c
tree13099533d8d0506cec9639c724e990df7578846d
parent65b44497414b97b38bcbb1c6f718151998250e29
ACPI: watchdog: Set default timeout in probe

[ Upstream commit cabe17d0173ab04bd3f87b8199ae75f43f1ea473 ]

If the BIOS default timeout for the watchdog is too small userspace may
not have enough time to configure new timeout after opening the device
before the system is already reset. For this reason program default
timeout of 30 seconds in the driver probe and allow userspace to change
this from command line or through module parameter (wdat_wdt.timeout).

Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/wdat_wdt.c