]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
rtc: pcf2127: only use watchdog when explicitly available
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 18 Dec 2020 10:10:54 +0000 (11:10 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 11 Jan 2021 11:23:02 +0000 (12:23 +0100)
commit4cf86f5b33fa212bbc994d2d8c42d5ce7be61a99
tree5a27cb66f6c122be397170e0d03e8dac2bcd56f3
parente481835f28d7c82add526b690ef33dc331480eb4
rtc: pcf2127: only use watchdog when explicitly available

BugLink: https://bugs.launchpad.net/bugs/1910983
commit 71ac13457d9d1007effde65b54818106b2c2b525 upstream.

Most boards using the pcf2127 chip (in my bubble) don't make use of the
watchdog functionality and the respective output is not connected. The
effect on such a board is that there is a watchdog device provided that
doesn't work.

So only register the watchdog if the device tree has a "reset-source"
property.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[RV: s/has-watchdog/reset-source/]
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201218101054.25416-3-rasmus.villemoes@prevas.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/rtc/rtc-pcf2127.c