public inbox for linux-watchdog@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 00/13] watchdog: factorize restart handler registration
@ 2015-11-03  1:36 Damien Riegel
  2015-11-03  1:36 ` [RFC PATCH 01/13] watchdog: core: add restart handler support Damien Riegel
                   ` (12 more replies)
  0 siblings, 13 replies; 31+ messages in thread
From: Damien Riegel @ 2015-11-03  1:36 UTC (permalink / raw)
  To: linux-watchdog
  Cc: Wim Van Sebroeck, Guenter Roeck, Vivien Didelot, kernel,
	Damien Riegel

Many drivers implements the exact same piece of code to register a
restart handler. It can be nice to factorize this in the watchdog core.

The first patch adds an optional restart watchdog operation. If a driver
defines this operation, a restart handler is registered. By default, the
restart handler priority is set to 0, but a helper function
watchdog_set_restart_priority is provided to change it.

The following patches bring this change to the current watchdog drivers
that use watchdog_core.

This change has been compile-tested on da9063, imx2, lpc18xx, imgpdc.
It has been tested with (not mainlined yet) ts-4800's watchdog driver.

Damien Riegel (13):
  watchdog: core: add restart handler support
  watchdog: bcm47xx_wdt: use core restart handler
  watchdog: da9063_wdt: use core restart handler
  watchdog: digicolor_wdt: use core restart handler
  watchdog: imgpdc_wdt: use core restart handler
  watchdog: imx2_wdt: use core restart handler
  watchdog: lpc18xx_wdt: use core restart handler
  watchdog: meson_wdt: use core restart handler
  watchdog: moxart_wdt: use core restart handler
  watchdog: mtk_wdt: use core restart handler
  watchdog: qcom-wdt: use core restart handler
  watchdog: s3c2410_wdt: use core restart handler
  watchdog: sunxi_wdt: use core restart handler

 Documentation/watchdog/watchdog-kernel-api.txt |  2 +
 drivers/watchdog/bcm47xx_wdt.c                 | 21 +++-----
 drivers/watchdog/da9063_wdt.c                  | 23 +++------
 drivers/watchdog/digicolor_wdt.c               | 18 ++-----
 drivers/watchdog/imgpdc_wdt.c                  | 34 +++++--------
 drivers/watchdog/imx2_wdt.c                    | 22 +++------
 drivers/watchdog/lpc18xx_wdt.c                 | 68 +++++++++++---------------
 drivers/watchdog/meson_wdt.c                   | 22 ++-------
 drivers/watchdog/moxart_wdt.c                  | 22 +++------
 drivers/watchdog/mtk_wdt.c                     | 19 ++-----
 drivers/watchdog/qcom-wdt.c                    | 63 ++++++++++--------------
 drivers/watchdog/s3c2410_wdt.c                 | 60 ++++++++++-------------
 drivers/watchdog/sunxi_wdt.c                   | 22 ++-------
 drivers/watchdog/watchdog_core.c               | 35 +++++++++++++
 include/linux/bcm47xx_wdt.h                    |  1 -
 include/linux/watchdog.h                       |  5 ++
 16 files changed, 178 insertions(+), 259 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2015-11-03 14:46 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03  1:36 [RFC PATCH 00/13] watchdog: factorize restart handler registration Damien Riegel
2015-11-03  1:36 ` [RFC PATCH 01/13] watchdog: core: add restart handler support Damien Riegel
2015-11-03  2:25   ` Guenter Roeck
2015-11-03  2:51     ` Vivien Didelot
2015-11-03  3:14       ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 02/13] watchdog: bcm47xx_wdt: use core restart handler Damien Riegel
2015-11-03  2:26   ` Guenter Roeck
2015-11-03 14:21     ` Vivien Didelot
2015-11-03 14:46       ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 03/13] watchdog: da9063_wdt: " Damien Riegel
2015-11-03  2:26   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 04/13] watchdog: digicolor_wdt: " Damien Riegel
2015-11-03  2:27   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 05/13] watchdog: imgpdc_wdt: " Damien Riegel
2015-11-03  2:28   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 06/13] watchdog: imx2_wdt: " Damien Riegel
2015-11-03  2:29   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 07/13] watchdog: lpc18xx_wdt: " Damien Riegel
2015-11-03  2:30   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 08/13] watchdog: meson_wdt: " Damien Riegel
2015-11-03  2:31   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 09/13] watchdog: moxart_wdt: " Damien Riegel
2015-11-03  2:32   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 10/13] watchdog: mtk_wdt: " Damien Riegel
2015-11-03  2:35   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 11/13] watchdog: qcom-wdt: " Damien Riegel
2015-11-03  2:37   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 12/13] watchdog: s3c2410_wdt: " Damien Riegel
2015-11-03  2:38   ` Guenter Roeck
2015-11-03  1:36 ` [RFC PATCH 13/13] watchdog: sunxi_wdt: " Damien Riegel
2015-11-03  2:41   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox