From: Oleksij Rempel <linux@rempel-privat.de>
To: barebox@lists.infradead.org
Cc: Oleksij Rempel <linux@rempel-privat.de>
Subject: [PATCH v1 1/2] watchdog: ar9344-wdt: disable watchdog in probe
Date: Wed, 28 Feb 2018 18:22:05 +0100 [thread overview]
Message-ID: <20180228172206.12823-1-linux@rempel-privat.de> (raw)
This should avoid of triggering reset if we boot barebox from
barebox.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
---
drivers/watchdog/ar9344_wdt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/watchdog/ar9344_wdt.c b/drivers/watchdog/ar9344_wdt.c
index d570cb40f..b61786b1b 100644
--- a/drivers/watchdog/ar9344_wdt.c
+++ b/drivers/watchdog/ar9344_wdt.c
@@ -101,6 +101,8 @@ static int ar9344_wdt_probe(struct device_d *dev)
dev->priv = priv;
ar9344_watchdog_detect_reset_source(priv);
+ /* disable watchdog on probe */
+ iowrite32be(0, priv->base + AR9344_WD_REG_CTRL);
priv->clk = clk_get(dev, NULL);
if (IS_ERR(priv->clk)) {
--
2.14.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2018-02-28 17:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-28 17:22 Oleksij Rempel [this message]
2018-02-28 17:22 ` [PATCH v1 2/2] MIPS: dts: enable heartbeat led for ar9331-dptechnics-dpt-module Oleksij Rempel
2018-03-01 9:04 ` Sascha Hauer
2018-03-01 9:03 ` [PATCH v1 1/2] watchdog: ar9344-wdt: disable watchdog in probe Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180228172206.12823-1-linux@rempel-privat.de \
--to=linux@rempel-privat.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox