watchdog: hpwdt: Disable PreTimeout when Timeout is smaller
authorJerry Hoemann <jerry.hoemann@hpe.com>
Fri, 21 Sep 2018 20:50:39 +0000 (14:50 -0600)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 2 Oct 2018 11:32:28 +0000 (13:32 +0200)
commit10d790d1fa2e9487053f9a3a289ff198736fa964
tree4d68d8de485ce029133d8daf4f8c4e708984e2e9
parent57cbf0e3a0fd48e5ad8f3884562e8dde4827c1c8
watchdog: hpwdt: Disable PreTimeout when Timeout is smaller

During module install, disable pretimeout if the requested timeout
value is not greater than the minimal pretimeout value that is
supported by hardware.

This makes the module load handling of pretimeout consistent
with the ioctl handling of pretimeout.

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/hpwdt.c