Re: [PATCH] drm/amd/pm: Fix get_if_active usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2/3/2025 9:36 PM, Alex Deucher wrote:
> On Fri, Jan 31, 2025 at 11:53 PM Lijo Lazar <lijo.lazar@xxxxxxx> wrote:
>>
>> If a device supports runtime pm, then pm_runtime_get_if_active returns 0
>> if a device is not active and 1 if already active. However, if a device
>> doesn't support runtime pm, the API returns -EINVAL. A device not
>> supporting runtime pm implies it's not affected by runtime pm and it's
>> active. Hence no need to get() to increment usage count. Remove < 0
>> return value check.
> 
> Might be worth mentioning that this happens when CONFIG_PM is not set
> assuming that is the case. 


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux