linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] watchdog: don't print superfluous errors
@ 2025-08-13 19:05 Wolfram Sang
  2025-08-13 19:05 ` [PATCH 1/3] watchdog: rzg2l_wdt: " Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Wolfram Sang @ 2025-08-13 19:05 UTC (permalink / raw)
  To: linux-watchdog
  Cc: Wolfram Sang, Guenter Roeck, linux-arm-kernel, Nobuhiro Iwamatsu,
	Wim Van Sebroeck

I found this needless printout in the Renesas RZ drivers. Then, I
updated an existing coccinelle script to find more of these in the tree.

No dependencies, buildbot is happy, based on v6.17-rc1.


Wolfram Sang (3):
  watchdog: rzg2l_wdt: don't print superfluous errors
  watchdog: rzv2h_wdt: don't print superfluous errors
  watchdog: visconti: don't print superfluous errors

 drivers/watchdog/rzg2l_wdt.c    | 4 +---
 drivers/watchdog/rzv2h_wdt.c    | 4 +---
 drivers/watchdog/visconti_wdt.c | 5 +----
 3 files changed, 3 insertions(+), 10 deletions(-)

-- 
2.47.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/3] watchdog: rzg2l_wdt: don't print superfluous errors
  2025-08-13 19:05 [PATCH 0/3] watchdog: don't print superfluous errors Wolfram Sang
@ 2025-08-13 19:05 ` Wolfram Sang
  2025-09-02 16:16   ` Guenter Roeck
  2025-08-13 19:05 ` [PATCH 2/3] watchdog: rzv2h_wdt: " Wolfram Sang
  2025-08-13 19:05 ` [PATCH 3/3] watchdog: visconti: " Wolfram Sang
  2 siblings, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2025-08-13 19:05 UTC (permalink / raw)
  To: linux-watchdog; +Cc: Wolfram Sang, Wim Van Sebroeck, Guenter Roeck

The watchdog core will handle error messages already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/watchdog/rzg2l_wdt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/watchdog/rzg2l_wdt.c b/drivers/watchdog/rzg2l_wdt.c
index 11bbe48160ec..1c9aa366d0a0 100644
--- a/drivers/watchdog/rzg2l_wdt.c
+++ b/drivers/watchdog/rzg2l_wdt.c
@@ -310,9 +310,7 @@ static int rzg2l_wdt_probe(struct platform_device *pdev)
 	watchdog_set_nowayout(&priv->wdev, nowayout);
 	watchdog_stop_on_unregister(&priv->wdev);
 
-	ret = watchdog_init_timeout(&priv->wdev, 0, dev);
-	if (ret)
-		dev_warn(dev, "Specified timeout invalid, using default");
+	watchdog_init_timeout(&priv->wdev, 0, dev);
 
 	return devm_watchdog_register_device(&pdev->dev, &priv->wdev);
 }
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] watchdog: rzv2h_wdt: don't print superfluous errors
  2025-08-13 19:05 [PATCH 0/3] watchdog: don't print superfluous errors Wolfram Sang
  2025-08-13 19:05 ` [PATCH 1/3] watchdog: rzg2l_wdt: " Wolfram Sang
@ 2025-08-13 19:05 ` Wolfram Sang
  2025-09-02 16:16   ` Guenter Roeck
  2025-08-13 19:05 ` [PATCH 3/3] watchdog: visconti: " Wolfram Sang
  2 siblings, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2025-08-13 19:05 UTC (permalink / raw)
  To: linux-watchdog; +Cc: Wolfram Sang, Wim Van Sebroeck, Guenter Roeck

The watchdog core will handle error messages already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/watchdog/rzv2h_wdt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/watchdog/rzv2h_wdt.c b/drivers/watchdog/rzv2h_wdt.c
index 8defd0241213..3035b49f012b 100644
--- a/drivers/watchdog/rzv2h_wdt.c
+++ b/drivers/watchdog/rzv2h_wdt.c
@@ -247,9 +247,7 @@ static int rzv2h_wdt_probe(struct platform_device *pdev)
 	watchdog_set_nowayout(&priv->wdev, nowayout);
 	watchdog_stop_on_unregister(&priv->wdev);
 
-	ret = watchdog_init_timeout(&priv->wdev, 0, dev);
-	if (ret)
-		dev_warn(dev, "Specified timeout invalid, using default");
+	watchdog_init_timeout(&priv->wdev, 0, dev);
 
 	return devm_watchdog_register_device(dev, &priv->wdev);
 }
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] watchdog: visconti: don't print superfluous errors
  2025-08-13 19:05 [PATCH 0/3] watchdog: don't print superfluous errors Wolfram Sang
  2025-08-13 19:05 ` [PATCH 1/3] watchdog: rzg2l_wdt: " Wolfram Sang
  2025-08-13 19:05 ` [PATCH 2/3] watchdog: rzv2h_wdt: " Wolfram Sang
@ 2025-08-13 19:05 ` Wolfram Sang
  2025-09-02 16:17   ` Guenter Roeck
  2025-09-03  0:14   ` nobuhiro.iwamatsu.x90
  2 siblings, 2 replies; 8+ messages in thread
From: Wolfram Sang @ 2025-08-13 19:05 UTC (permalink / raw)
  To: linux-watchdog
  Cc: Wolfram Sang, Wim Van Sebroeck, Guenter Roeck, Nobuhiro Iwamatsu,
	linux-arm-kernel

The watchdog core will handle error messages already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/watchdog/visconti_wdt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/watchdog/visconti_wdt.c b/drivers/watchdog/visconti_wdt.c
index cef0794708e7..7795e7fbf67e 100644
--- a/drivers/watchdog/visconti_wdt.c
+++ b/drivers/watchdog/visconti_wdt.c
@@ -118,7 +118,6 @@ static int visconti_wdt_probe(struct platform_device *pdev)
 	struct visconti_wdt_priv *priv;
 	struct device *dev = &pdev->dev;
 	struct clk *clk;
-	int ret;
 	unsigned long clk_freq;
 
 	priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
@@ -153,9 +152,7 @@ static int visconti_wdt_probe(struct platform_device *pdev)
 	watchdog_stop_on_unregister(wdev);
 
 	/* This overrides the default timeout only if DT configuration was found */
-	ret = watchdog_init_timeout(wdev, 0, dev);
-	if (ret)
-		dev_warn(dev, "Specified timeout value invalid, using default\n");
+	watchdog_init_timeout(wdev, 0, dev);
 
 	return devm_watchdog_register_device(dev, wdev);
 }
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] watchdog: rzg2l_wdt: don't print superfluous errors
  2025-08-13 19:05 ` [PATCH 1/3] watchdog: rzg2l_wdt: " Wolfram Sang
@ 2025-09-02 16:16   ` Guenter Roeck
  0 siblings, 0 replies; 8+ messages in thread
From: Guenter Roeck @ 2025-09-02 16:16 UTC (permalink / raw)
  To: Wolfram Sang, linux-watchdog; +Cc: Wim Van Sebroeck

On 8/13/25 12:05, Wolfram Sang wrote:
> The watchdog core will handle error messages already.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/3] watchdog: rzv2h_wdt: don't print superfluous errors
  2025-08-13 19:05 ` [PATCH 2/3] watchdog: rzv2h_wdt: " Wolfram Sang
@ 2025-09-02 16:16   ` Guenter Roeck
  0 siblings, 0 replies; 8+ messages in thread
From: Guenter Roeck @ 2025-09-02 16:16 UTC (permalink / raw)
  To: Wolfram Sang, linux-watchdog; +Cc: Wim Van Sebroeck

On 8/13/25 12:05, Wolfram Sang wrote:
> The watchdog core will handle error messages already.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


Reviewed-by: Guenter Roeck <linux@roeck-us.net>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/3] watchdog: visconti: don't print superfluous errors
  2025-08-13 19:05 ` [PATCH 3/3] watchdog: visconti: " Wolfram Sang
@ 2025-09-02 16:17   ` Guenter Roeck
  2025-09-03  0:14   ` nobuhiro.iwamatsu.x90
  1 sibling, 0 replies; 8+ messages in thread
From: Guenter Roeck @ 2025-09-02 16:17 UTC (permalink / raw)
  To: Wolfram Sang, linux-watchdog
  Cc: Wim Van Sebroeck, Nobuhiro Iwamatsu, linux-arm-kernel

On 8/13/25 12:05, Wolfram Sang wrote:
> The watchdog core will handle error messages already.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


Reviewed-by: Guenter Roeck <linux@roeck-us.net>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH 3/3] watchdog: visconti: don't print superfluous errors
  2025-08-13 19:05 ` [PATCH 3/3] watchdog: visconti: " Wolfram Sang
  2025-09-02 16:17   ` Guenter Roeck
@ 2025-09-03  0:14   ` nobuhiro.iwamatsu.x90
  1 sibling, 0 replies; 8+ messages in thread
From: nobuhiro.iwamatsu.x90 @ 2025-09-03  0:14 UTC (permalink / raw)
  To: wsa+renesas, linux-watchdog; +Cc: wim, linux, linux-arm-kernel

Hello,

> -----Original Message-----
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> Sent: Thursday, August 14, 2025 4:05 AM
> To: linux-watchdog@vger.kernel.org
> Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>; Wim Van
> Sebroeck <wim@linux-watchdog.org>; Guenter Roeck <linux@roeck-us.net>;
> iwamatsu nobuhiro(岩松 信洋 □DITC○CPT)
> <nobuhiro1.iwamatsu@toshiba.co.jp>; linux-arm-kernel@lists.infradead.org
> Subject: [PATCH 3/3] watchdog: visconti: don't print superfluous errors
> 
> The watchdog core will handle error messages already.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
>  drivers/watchdog/visconti_wdt.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/watchdog/visconti_wdt.c
> b/drivers/watchdog/visconti_wdt.c index cef0794708e7..7795e7fbf67e 100644
> --- a/drivers/watchdog/visconti_wdt.c
> +++ b/drivers/watchdog/visconti_wdt.c
> @@ -118,7 +118,6 @@ static int visconti_wdt_probe(struct platform_device
> *pdev)
>  	struct visconti_wdt_priv *priv;
>  	struct device *dev = &pdev->dev;
>  	struct clk *clk;
> -	int ret;
>  	unsigned long clk_freq;
> 
>  	priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); @@ -153,9
> +152,7 @@ static int visconti_wdt_probe(struct platform_device *pdev)
>  	watchdog_stop_on_unregister(wdev);
> 
>  	/* This overrides the default timeout only if DT configuration was
> found */
> -	ret = watchdog_init_timeout(wdev, 0, dev);
> -	if (ret)
> -		dev_warn(dev, "Specified timeout value invalid, using
> default\n");
> +	watchdog_init_timeout(wdev, 0, dev);
> 
>  	return devm_watchdog_register_device(dev, wdev);  }

Reviewed-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.x90@mail.toshiba>

Best regards,
  Nobuhiro


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-03  1:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 19:05 [PATCH 0/3] watchdog: don't print superfluous errors Wolfram Sang
2025-08-13 19:05 ` [PATCH 1/3] watchdog: rzg2l_wdt: " Wolfram Sang
2025-09-02 16:16   ` Guenter Roeck
2025-08-13 19:05 ` [PATCH 2/3] watchdog: rzv2h_wdt: " Wolfram Sang
2025-09-02 16:16   ` Guenter Roeck
2025-08-13 19:05 ` [PATCH 3/3] watchdog: visconti: " Wolfram Sang
2025-09-02 16:17   ` Guenter Roeck
2025-09-03  0:14   ` nobuhiro.iwamatsu.x90

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).