[alsa-devel] [PATCH 3/4] soundwire: bus: check if pm runtime is enabled before calling
Srinivas Kandagatla
srinivas.kandagatla at linaro.org
Fri Mar 29 11:02:47 CET 2019
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/drivers/iommu/arm-smmu.c?h=v5.1-rc2#n279
> 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
>
>
More information about the Alsa-devel
mailing list