]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
watchdog: renesas_wdt: stop when unregistering
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 28 Aug 2018 10:13:48 +0000 (12:13 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 2 Oct 2018 11:32:24 +0000 (13:32 +0200)
commit14de99b44b34dbb9d0f64845b1cbb675e047767e
treefda430e27c63c108a676f05b8024b1e357b39b11
parent953b9dd7725bad55a922a35e75bff7bebf7b9978
watchdog: renesas_wdt: stop when unregistering

We want to go into a sane state when unregistering. Currently, it
happens that the watchdog stops when unbinding because of RuntimePM
stopping the core clock. When rebinding, the core clock gets reactivated
and the watchdog fires even though it hasn't been opened by userspace
yet. Strange scenario, yes, but sane state is much preferred anyhow.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.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/renesas_wdt.c