]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: f71808e_wdt: indicate WDIOF_CARDRESET support in watchdog_info.options
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Thu, 11 Jun 2020 19:17:43 +0000 (21:17 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:42:52 +0000 (18:42 +0200)
commite871e93fb08a619dfc015974a05768ed6880fd82
tree0a3c97bf8f7be47f1a51be3eaea205338a0b7060
parentd51d3852d1fd28409107274dc1d8077022cc0dc2
watchdog: f71808e_wdt: indicate WDIOF_CARDRESET support in watchdog_info.options

The driver supports populating bootstatus with WDIOF_CARDRESET, but so
far userspace couldn't portably determine whether absence of this flag
meant no watchdog reset or no driver support. Or-in the bit to fix this.

Fixes: b97cb21a4634 ("watchdog: f71808e_wdt: Fix WDTMOUT_STS register read")
Cc: stable@vger.kernel.org
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200611191750.28096-3-a.fatoum@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/f71808e_wdt.c