drm/amdgpu/acp: fix resume on CZ systems with AZ audio
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Apr 2016 03:37:42 +0000 (23:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 15:18:36 +0000 (11:18 -0400)
Nothing to do on resume on systems with AZ audio.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c

index d6b0bff510aaa719dbb0f9cce269645b06716127..b7b583c42ea82410b2c80825185da124e385219c 100644 (file)
@@ -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.
This page took 0.026572 seconds and 5 git commands to generate.