* [PATCH] watchdog: imxwd: more info in imx21_watchdog_set_timeout debug message
@ 2024-07-29 17:22 Ahmad Fatoum
2024-07-30 7:50 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-07-29 17:22 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
The function behaves differently depending on whether priv->ext_reset
and priv->suspend_in_lpm is set. To make the debugging prints more
useful add this information into the debug message.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/watchdog/imxwd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/watchdog/imxwd.c b/drivers/watchdog/imxwd.c
index 2ec9d0d59635..bfc47bb8dd75 100644
--- a/drivers/watchdog/imxwd.c
+++ b/drivers/watchdog/imxwd.c
@@ -116,7 +116,8 @@ static int imx21_watchdog_set_timeout(struct imx_wd *priv, unsigned timeout)
{
u16 val;
- dev_dbg(priv->dev, "%s: %d\n", __func__, timeout);
+ dev_dbg(priv->dev, "%s: %d extrst=%u suspend=%u\n",
+ __func__, timeout, priv->ext_reset, priv->suspend_in_lpm);
if (timeout == 0) /* bit 2 (WDE) cannot be set to 0 again */
return -ENOSYS;
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-30 7:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-29 17:22 [PATCH] watchdog: imxwd: more info in imx21_watchdog_set_timeout debug message Ahmad Fatoum
2024-07-30 7:50 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox