Re: [PATCH] PM: runtime: document common mistake with pm_runtime_get_sync()

Pavel Machek
2021-04-25T22:53:56Z

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

Hi!

> However, if the code wants to check the return value, that is:
>
> error = pm_runtime_resume_and_get(dev);
> if (error)
> return error;

Well, we mostly expect people to check error values, and the "continue
on error" case seems to be pretty unusual and mostly result of
oversight.

Quite large percentage of -stable patches is fixes after people got
confused with unusual interface...

Best regards,
Pavel

--
http://www.livejournal.com/~pavelmachek

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]