diff options
| author | Sudeep Holla <[email protected]> | 2025-05-02 14:01:19 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-05-07 14:39:58 +0000 |
| commit | 5836ebeb4a2b7e25305fab9170060d5f3de1ff30 (patch) | |
| tree | fdc8dbcd944a611f11f015838fd703a0c0f0b5b9 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | Documentation: ABI: testing: document the new cpuidle sysfs file (diff) | |
| download | kernel-5836ebeb4a2b7e25305fab9170060d5f3de1ff30.tar.gz kernel-5836ebeb4a2b7e25305fab9170060d5f3de1ff30.zip | |
cpuidle: psci: Avoid initializing faux device if no DT idle states are present
Commit af5376a77e87 ("cpuidle: psci: Transition to the faux device interface")
transitioned the PSCI cpuidle driver from using a platform device to the
faux device framework. However, unlike platform devices, the faux device
infrastructure logs an error when the probe function fails, even if the
failure is intentional or expected.
To prevent unnecessary error logs, we can skip creating the faux device
entirely if there are no PSCI idle states defined in the device tree.
Introduce a check for DT idle states during initialization and avoid
setting up the device if none are found.
This ensures cleaner logs and avoids misleading probe failure messages
when PSCI idle support is intentionally not described in DT.
Fixes: af5376a77e87 ("cpuidle: psci: Transition to the faux device interface")
Reported-by: Jon Hunter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sudeep Holla <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
