dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] dmaengine: stm32-mdma: call pm_runtime_put if pm_runtime_get_sync fails
@ 2020-06-03 18:52 Markus Elfring
  2020-06-03 19:17 ` Navid Emamdoost
  2020-06-03 22:01 ` Geert Uytterhoeven
  0 siblings, 2 replies; 7+ messages in thread
From: Markus Elfring @ 2020-06-03 18:52 UTC (permalink / raw)
  To: Navid Emamdoost, dmaengine, linux-arm-kernel, linux-stm32
  Cc: Alexandre Torgue, Dan Williams, Navid Emamdoost, Kangjie Lu,
	Stephen McCamant, Qiushi Wu, Vinod Koul, Maxime Coquelin,
	linux-kernel, kernel-janitors

> Calling pm_runtime_get_sync increments the counter even in case of
> failure, causing incorrect ref count. Call pm_runtime_put if
> pm_runtime_get_sync fails.

Is it appropriate to copy a sentence from the change description
into the patch subject?

How do you think about a wording variant like the following?

   The PM runtime reference counter is generally incremented by a call of
   the function “pm_runtime_get_sync”.
   Thus call the function “pm_runtime_put” also in two error cases
   to keep the reference counting consistent.


Would you like to add the tag “Fixes” to the commit message?

Regards,
Markus

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

end of thread, other threads:[~2020-06-17 13:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 18:52 [PATCH] dmaengine: stm32-mdma: call pm_runtime_put if pm_runtime_get_sync fails Markus Elfring
2020-06-03 19:17 ` Navid Emamdoost
2020-06-03 19:40   ` [PATCH v2] dmaengine: stm32-dma: " Markus Elfring
2020-06-04  9:36   ` [PATCH] dmaengine: stm32-dmamux: Fix pm_runtime_get_sync() failure cases Markus Elfring
2020-06-17 13:59   ` [PATCH] dmaengine: stm32-mdma: call pm_runtime_put if pm_runtime_get_sync fails Vinod Koul
2020-06-03 22:01 ` Geert Uytterhoeven
2020-06-04  5:43   ` Markus Elfring

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