linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure
@ 2020-06-02  8:40 Markus Elfring
  2020-06-02  9:49 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Elfring @ 2020-06-02  8:40 UTC (permalink / raw)
  To: Navid Emamdoost, linux-spi
  Cc: Navid Emamdoost, Kangjie Lu, Stephen McCamant, Qiushi Wu,
	Mark Brown, Dinghao Liu, LKML, kernel-janitors

> The counter is incremented via pm_runtime_get even in failure case.
> To correct the counter call pm_runtime_put in case of failure, too.

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

   Change description:
   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_autosuspend” also in one error case
   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] 8+ messages in thread

end of thread, other threads:[~2020-06-02 19:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-02  8:40 [PATCH] spi: spi-ti-qspi: call pm_runtime_put on pm_runtime_get failure Markus Elfring
2020-06-02  9:49 ` Mark Brown
2020-06-02 10:02   ` Markus Elfring
2020-06-02 14:13     ` Mark Brown
2020-06-02 15:05       ` Markus Elfring
2020-06-02 18:36         ` Mark Brown
2020-06-02 19:35           ` Navid Emamdoost
2020-06-02 19:54           ` 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).