From: Alex Deucher Date: Thu, 14 Apr 2016 03:37:42 +0000 (-0400) Subject: drm/amdgpu/acp: fix resume on CZ systems with AZ audio X-Git-Tag: v4.6-rc5~15^2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f99455587855a5f79af08e40327ca40ab5f1999;p=platform%2Fkernel%2Flinux-exynos.git 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 --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c index d6b0bff..b7b583c 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.