aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-04-13 23:37:42 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-04-18 11:18:36 -0400
commit8f99455587855a5f79af08e40327ca40ab5f1999 (patch)
tree269a7693830a16f1efe66fc3359a7deab924be43 /drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
parentdrm/radeon: add a quirk for a XFX R9 270X (diff)
downloadlinux-dev-8f99455587855a5f79af08e40327ca40ab5f1999.tar.xz
linux-dev-8f99455587855a5f79af08e40327ca40ab5f1999.zip
drm/amdgpu/acp: fix resume on CZ systems with AZ audio
Nothing to do on resume on systems with AZ audio. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
index d6b0bff510aa..b7b583c42ea8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
@@ -425,6 +425,10 @@ static int acp_resume(void *handle)
struct acp_pm_domain *apd;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ /* return early if no ACP */
+ if (!adev->acp.acp_genpd)
+ return 0;
+
/* SMU block will power on ACP irrespective of ACP runtime status.
* Power off explicitly based on genpd ACP runtime status so that ACP
* hw and ACP-genpd status are in sync.