Messages in this thread | | | Date | Mon, 26 Apr 2021 00:53:45 +0200 | From | Pavel Machek <> | Subject | Re: [PATCH] PM: runtime: document common mistake with pm_runtime_get_sync() |
| |
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 [unhandled content-type:application/pgp-signature] | |