* [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
* Re: [PATCH] watchdog: imxwd: more info in imx21_watchdog_set_timeout debug message
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
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-07-30 7:50 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Mon, 29 Jul 2024 19:22:49 +0200, Ahmad Fatoum wrote:
> 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.
>
>
Applied, thanks!
[1/1] watchdog: imxwd: more info in imx21_watchdog_set_timeout debug message
https://git.pengutronix.de/cgit/barebox/commit/?id=3778b0b2adb4 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ 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