29 Mar
2019
29 Mar
'19
11:02 a.m.
On 29/03/2019 05:58, Vinod Koul wrote:
There are lots of users in kernel with such sequences, ex:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/driv...
Sorry not a fan of this:) I think PM core should do this :D
Yes, I would prefer that too, There might be a reason why its not done in the pm core, I will catchup with Ulf next week and see if we can add checks to return -ENOSUPPORT or something more sensible error code to users.
Thanks, srini
I guess you are trying to solve the case where PM can be disabled for a device and pm_runtime_get_sync() returns error right?
That would be quite a common sequence in most frameworks..
Thanks