linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: a failing pm_runtime_get increases the refcnt?
@ 2020-06-14  9:07 Wolfram Sang
  2020-06-14  9:34 ` Andy Shevchenko
  2020-06-14 13:50 ` Rafael J. Wysocki
  0 siblings, 2 replies; 11+ messages in thread
From: Wolfram Sang @ 2020-06-14  9:07 UTC (permalink / raw)
  To: linux-pm, Rafael J. Wysocki; +Cc: linux-renesas-soc, linux-kernel, linux-i2c

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

Hi Linux-PM,

both in the I2C subsystem and also for Renesas drivers I maintain, I am
starting to get boilerplate patches doing some pm_runtime_put_* variant
because a failing pm_runtime_get is supposed to increase the ref
counters? Really? This feels wrong and unintuitive to me. I expect there
has been a discussion around it but I couldn't find it. I wonder why we
don't fix the code where the incremented refcount is expected for some
reason.

Can I have some pointers please?

Thanks,

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

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

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-14  9:07 RFC: a failing pm_runtime_get increases the refcnt? Wolfram Sang
2020-06-14  9:34 ` Andy Shevchenko
2020-06-14  9:42   ` Andy Shevchenko
2020-06-14 10:00     ` Geert Uytterhoeven
2020-06-14 10:04       ` Geert Uytterhoeven
2020-06-14 10:44         ` Andy Shevchenko
2020-06-14 12:42       ` Andy Shevchenko
2020-06-14 13:59       ` Rafael J. Wysocki
2020-06-14 14:07         ` Wolfram Sang
2020-06-30 19:48           ` Wolfram Sang
2020-06-14 13:50 ` Rafael J. Wysocki

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