drm/amd/pm: refine amdgpu pm sysfs node error code

[ Upstream commit cf32515a70 ]

v1:
Returns different error codes based on the scenario to help the user app understand
the AMDGPU device status when an exception occurs.

v2:
change -NODEV to -EBUSY.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Yang Wang 2025-09-03 14:29:12 +08:00 • committed by Greg Kroah-Hartman
commit 39d6ad4cdb