Skip to content

Commit

Permalink
drm/amdgpu: clean the dummy suspend functions
Browse files Browse the repository at this point in the history
Remove the dummy suspend functions for all
ip blocks.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Sunil Khatri authored and Alex Deucher committed Oct 22, 2024
1 parent fbcd0ad commit aa980de
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
6 changes: 0 additions & 6 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ static int isp_hw_fini(struct amdgpu_ip_block *ip_block)
return -ENODEV;
}

static int isp_suspend(struct amdgpu_ip_block *ip_block)
{
return 0;
}

static int isp_load_fw_by_psp(struct amdgpu_device *adev)
{
const struct common_firmware_header *hdr;
Expand Down Expand Up @@ -161,7 +156,6 @@ static const struct amd_ip_funcs isp_ip_funcs = {
.late_init = NULL,
.hw_init = isp_hw_init,
.hw_fini = isp_hw_fini,
.suspend = isp_suspend,
.is_idle = isp_is_idle,
.wait_for_idle = isp_wait_for_idle,
.soft_reset = isp_soft_reset,
Expand Down
3 changes: 2 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,8 @@ static int amdgpu_vkms_suspend(struct amdgpu_ip_block *ip_block)
r = drm_mode_config_helper_suspend(adev_to_drm(adev));
if (r)
return r;
return amdgpu_vkms_hw_fini(ip_block);

return 0;
}

static int amdgpu_vkms_resume(struct amdgpu_ip_block *ip_block)
Expand Down
6 changes: 0 additions & 6 deletions drivers/gpu/drm/amd/amdgpu/cik.c
Original file line number Diff line number Diff line change
Expand Up @@ -2143,11 +2143,6 @@ static int cik_common_hw_fini(struct amdgpu_ip_block *ip_block)
return 0;
}

static int cik_common_suspend(struct amdgpu_ip_block *ip_block)
{
return cik_common_hw_fini(ip_block);
}

static int cik_common_resume(struct amdgpu_ip_block *ip_block)
{
return cik_common_hw_init(ip_block);
Expand Down Expand Up @@ -2187,7 +2182,6 @@ static const struct amd_ip_funcs cik_common_ip_funcs = {
.late_init = NULL,
.hw_init = cik_common_hw_init,
.hw_fini = cik_common_hw_fini,
.suspend = cik_common_suspend,
.resume = cik_common_resume,
.is_idle = cik_common_is_idle,
.wait_for_idle = cik_common_wait_for_idle,
Expand Down
6 changes: 0 additions & 6 deletions drivers/gpu/drm/amd/amdgpu/si.c
Original file line number Diff line number Diff line change
Expand Up @@ -2639,11 +2639,6 @@ static int si_common_hw_fini(struct amdgpu_ip_block *ip_block)
return 0;
}

static int si_common_suspend(struct amdgpu_ip_block *ip_block)
{
return si_common_hw_fini(ip_block);
}

static int si_common_resume(struct amdgpu_ip_block *ip_block)
{
return si_common_hw_init(ip_block);
Expand Down Expand Up @@ -2682,7 +2677,6 @@ static const struct amd_ip_funcs si_common_ip_funcs = {
.late_init = NULL,
.hw_init = si_common_hw_init,
.hw_fini = si_common_hw_fini,
.suspend = si_common_suspend,
.resume = si_common_resume,
.is_idle = si_common_is_idle,
.wait_for_idle = si_common_wait_for_idle,
Expand Down

0 comments on commit aa980de

Please sign in to comment.