linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind
@ 2025-04-06 20:35 Krzysztof Kozlowski
  2025-04-06 20:35 ` [PATCH 2/2] watchdog: Correct kerneldoc warnings Krzysztof Kozlowski
  2025-04-06 21:17 ` [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind Guenter Roeck
  0 siblings, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-06 20:35 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Maxime Coquelin,
	Alexandre Torgue, linux-watchdog, linux-kernel, linux-stm32,
	linux-arm-kernel
  Cc: Krzysztof Kozlowski

Device can be unbound or probe can fail, so driver must also release
memory for the wakeup source.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/watchdog/stm32_iwdg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c
index 8ad06b54c5ad..b356a272ff9a 100644
--- a/drivers/watchdog/stm32_iwdg.c
+++ b/drivers/watchdog/stm32_iwdg.c
@@ -291,7 +291,7 @@ static int stm32_iwdg_irq_init(struct platform_device *pdev,
 		return 0;
 
 	if (of_property_read_bool(np, "wakeup-source")) {
-		ret = device_init_wakeup(dev, true);
+		ret = devm_device_init_wakeup(dev);
 		if (ret)
 			return ret;
 
-- 
2.45.2



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

* [PATCH 2/2] watchdog: Correct kerneldoc warnings
  2025-04-06 20:35 [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind Krzysztof Kozlowski
@ 2025-04-06 20:35 ` Krzysztof Kozlowski
  2025-04-06 21:15   ` Guenter Roeck
  2025-04-06 21:17 ` [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind Guenter Roeck
  1 sibling, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-06 20:35 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Maxime Coquelin,
	Alexandre Torgue, linux-watchdog, linux-kernel, linux-stm32,
	linux-arm-kernel
  Cc: Krzysztof Kozlowski

Correct kerneldoc syntax or drop kerneldoc entirely for function
comments not being kerneldoc to fix warnings like:

  pretimeout_noop.c:19: warning: Function parameter or struct member 'wdd' not described in 'pretimeout_noop'

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/watchdog/pcwd_usb.c         | 6 +++---
 drivers/watchdog/pretimeout_noop.c  | 2 +-
 drivers/watchdog/pretimeout_panic.c | 2 +-
 drivers/watchdog/wdt_pci.c          | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/watchdog/pcwd_usb.c b/drivers/watchdog/pcwd_usb.c
index 132699e2f247..b636650b714b 100644
--- a/drivers/watchdog/pcwd_usb.c
+++ b/drivers/watchdog/pcwd_usb.c
@@ -579,7 +579,7 @@ static struct notifier_block usb_pcwd_notifier = {
 	.notifier_call =	usb_pcwd_notify_sys,
 };
 
-/**
+/*
  *	usb_pcwd_delete
  */
 static inline void usb_pcwd_delete(struct usb_pcwd_private *usb_pcwd)
@@ -590,7 +590,7 @@ static inline void usb_pcwd_delete(struct usb_pcwd_private *usb_pcwd)
 	kfree(usb_pcwd);
 }
 
-/**
+/*
  *	usb_pcwd_probe
  *
  *	Called by the usb core when a new device is connected that it thinks
@@ -758,7 +758,7 @@ static int usb_pcwd_probe(struct usb_interface *interface,
 }
 
 
-/**
+/*
  *	usb_pcwd_disconnect
  *
  *	Called by the usb core when the device is removed from the system.
diff --git a/drivers/watchdog/pretimeout_noop.c b/drivers/watchdog/pretimeout_noop.c
index 4799551dd784..74ec02b9ffca 100644
--- a/drivers/watchdog/pretimeout_noop.c
+++ b/drivers/watchdog/pretimeout_noop.c
@@ -11,7 +11,7 @@
 
 /**
  * pretimeout_noop - No operation on watchdog pretimeout event
- * @wdd - watchdog_device
+ * @wdd: watchdog_device
  *
  * This function prints a message about pretimeout to kernel log.
  */
diff --git a/drivers/watchdog/pretimeout_panic.c b/drivers/watchdog/pretimeout_panic.c
index 2cc3c41d2be5..8c3ac674dc45 100644
--- a/drivers/watchdog/pretimeout_panic.c
+++ b/drivers/watchdog/pretimeout_panic.c
@@ -11,7 +11,7 @@
 
 /**
  * pretimeout_panic - Panic on watchdog pretimeout event
- * @wdd - watchdog_device
+ * @wdd: watchdog_device
  *
  * Panic, watchdog has not been fed till pretimeout event.
  */
diff --git a/drivers/watchdog/wdt_pci.c b/drivers/watchdog/wdt_pci.c
index dc5f29560e9b..3918a600f2a0 100644
--- a/drivers/watchdog/wdt_pci.c
+++ b/drivers/watchdog/wdt_pci.c
@@ -264,7 +264,7 @@ static int wdtpci_get_status(int *status)
 	return 0;
 }
 
-/**
+/*
  *	wdtpci_get_temperature:
  *
  *	Reports the temperature in degrees Fahrenheit. The API is in
-- 
2.45.2



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

* Re: [PATCH 2/2] watchdog: Correct kerneldoc warnings
  2025-04-06 20:35 ` [PATCH 2/2] watchdog: Correct kerneldoc warnings Krzysztof Kozlowski
@ 2025-04-06 21:15   ` Guenter Roeck
  0 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2025-04-06 21:15 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Wim Van Sebroeck, Maxime Coquelin,
	Alexandre Torgue, linux-watchdog, linux-kernel, linux-stm32,
	linux-arm-kernel

On 4/6/25 13:35, Krzysztof Kozlowski wrote:
> Correct kerneldoc syntax or drop kerneldoc entirely for function
> comments not being kerneldoc to fix warnings like:
> 
>    pretimeout_noop.c:19: warning: Function parameter or struct member 'wdd' not described in 'pretimeout_noop'
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

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



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

* Re: [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind
  2025-04-06 20:35 [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind Krzysztof Kozlowski
  2025-04-06 20:35 ` [PATCH 2/2] watchdog: Correct kerneldoc warnings Krzysztof Kozlowski
@ 2025-04-06 21:17 ` Guenter Roeck
  2025-05-22 18:36   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2025-04-06 21:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Wim Van Sebroeck, Maxime Coquelin,
	Alexandre Torgue, linux-watchdog, linux-kernel, linux-stm32,
	linux-arm-kernel

On 4/6/25 13:35, Krzysztof Kozlowski wrote:
> Device can be unbound or probe can fail, so driver must also release
> memory for the wakeup source.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

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



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

* Re: [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind
  2025-04-06 21:17 ` [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind Guenter Roeck
@ 2025-05-22 18:36   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-22 18:36 UTC (permalink / raw)
  To: Guenter Roeck, Wim Van Sebroeck, Maxime Coquelin,
	Alexandre Torgue, linux-watchdog, linux-kernel, linux-stm32,
	linux-arm-kernel

On 06/04/2025 23:17, Guenter Roeck wrote:
> On 4/6/25 13:35, Krzysztof Kozlowski wrote:
>> Device can be unbound or probe can fail, so driver must also release
>> memory for the wakeup source.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> 


This was almost two months ago, got review but still did not reach
linux-next. What is needed for this patchset?

Best regards,
Krzysztof


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

end of thread, other threads:[~2025-05-22 18:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-06 20:35 [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind Krzysztof Kozlowski
2025-04-06 20:35 ` [PATCH 2/2] watchdog: Correct kerneldoc warnings Krzysztof Kozlowski
2025-04-06 21:15   ` Guenter Roeck
2025-04-06 21:17 ` [PATCH 1/2] watchdog: stm32: Fix wakeup source leaks on device unbind Guenter Roeck
2025-05-22 18:36   ` Krzysztof Kozlowski

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).