]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: Always evaluate new timeout against min_timeout
authorGuenter Roeck <linux@roeck-us.net>
Tue, 29 Sep 2015 08:27:24 +0000 (01:27 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 28 Oct 2015 22:00:45 +0000 (23:00 +0100)
commitda98995fa1075ffa77485df3c58b4ae1c9d7a8ef
treea187cd45cb91719d4843817cb886756823152ef2
parent8cbb97ea3e386eb95ecbd99260d681792963cebf
watchdog: Always evaluate new timeout against min_timeout

Up to now, a new timeout value is only evaluated against min_timeout
if max_timeout is provided. This does not really make sense; a driver
can have a minimum timeout even if it does not have a maximum timeout.
Ensure that it is not smaller than min_timeout, even if max_timeout
is not set.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
include/linux/watchdog.h