mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Stopping watchdog in watchdog driver remove functions
@ 2016-12-31 19:44 Guenter Roeck
  2017-01-01 11:14 ` Wim Van Sebroeck
  0 siblings, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2016-12-31 19:44 UTC (permalink / raw)
  To: wim
  Cc: linux-watchdog, linux-kernel, Laxman Dewangan, Mans Rullgard,
	Justin Chen, Wenyou Yang, Naidu Tellapati

Hi,

I noticed that several watchdog drivers stop the watchdog in trhe driver remove function.
A non-exhaustive list of drivers doing that is

	drivers/watchdog/bcm7038_wdt.c
	drivers/watchdog/cadence_wdt.c
	drivers/watchdog/imgpdc_wdt.c
	drivers/watchdog/jz4740_wdt.c
	drivers/watchdog/kempld_wdt.c
	drivers/watchdog/max77620_wdt.c
	drivers/watchdog/moxart_wdt.c
	drivers/watchdog/sama5d4_wdt.c
	drivers/watchdog/tangox_wdt.c
	drivers/watchdog/tegra_wdt.c

Since a watchdog has to be closed for its driver to be removable, one situation
where a watchdog is still running on unload is where the watchdog was opened but
not closed properly (eg by killing the watchdog application, or if the 'nowayout'
flag is set).

Given that, does it even make sense to stop the watchdog in the remove function ?
Should it even be permitted ?

Thanks,
Guenter

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

end of thread, other threads:[~2017-01-01 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-31 19:44 Stopping watchdog in watchdog driver remove functions Guenter Roeck
2017-01-01 11:14 ` Wim Van Sebroeck
2017-01-01 15:24   ` Andy Shevchenko
2017-01-01 16:52   ` Guenter Roeck

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

all inboxes | Powered by JetHome®