diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-03-02 18:31:14 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2017-06-05 17:58:39 +0200 |
commit | 5dca80f63eaf18eca2ba3ebf61056feb66103951 (patch) | |
tree | 16db4823e3947149978ea255f65e5d9761fd006a /drivers/watchdog | |
parent | 39bd56df7b2dae80d4099c64ad776775a3876ed5 (diff) | |
download | linux-5dca80f63eaf18eca2ba3ebf61056feb66103951.tar.bz2 |
watchdog: sama5d4: Add comment explaining what happens on resume
Because suspending to RAM may lose the register values, they are restored
on resume. This is currently done unconditionally because there is
currently no way to know (from the driver) whether they have really been
lost or are still valid. Writing MR also pings the watchdog and this may
not be what is expected so add a comment explaining why it happens.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.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@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/sama5d4_wdt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c index d710014f3b7d..0ae947c3d7bc 100644 --- a/drivers/watchdog/sama5d4_wdt.c +++ b/drivers/watchdog/sama5d4_wdt.c @@ -300,6 +300,11 @@ static int sama5d4_wdt_resume(struct device *dev) { struct sama5d4_wdt *wdt = dev_get_drvdata(dev); + /* + * FIXME: writing MR also pings the watchdog which may not be desired. + * This should only be done when the registers are lost on suspend but + * there is no way to get this information right now. + */ sama5d4_wdt_init(wdt); return 0; |