drm/amdgpu: avoid to perform undesired clockgating operation
authorEvan Quan <evan.quan@amd.com>
Tue, 24 May 2022 08:15:06 +0000 (16:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jun 2022 15:43:12 +0000 (11:43 -0400)
commit1b3aa89550a2ce4f4af41e11162c5cc0b0b07b4f
treeb01291ee7124f0025c600217853fee78568de0eb
parent62f8f5c3bfc2968461b0a74f0e393325bec16c69
drm/amdgpu: avoid to perform undesired clockgating operation

Make sure the clockgating feature is supported before action.
Otherwise, the feature may be disabled unexpectedly on enablement
request.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c