Skip to content

Commit aa980de

Browse files
amd-sukhatrialexdeucher
authored andcommitted
drm/amdgpu: clean the dummy suspend functions
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>
1 parent fbcd0ad commit aa980de

4 files changed

Lines changed: 2 additions & 19 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ static int isp_hw_fini(struct amdgpu_ip_block *ip_block)
6666
return -ENODEV;
6767
}
6868

69-
static int isp_suspend(struct amdgpu_ip_block *ip_block)
70-
{
71-
return 0;
72-
}
73-
7469
static int isp_load_fw_by_psp(struct amdgpu_device *adev)
7570
{
7671
const struct common_firmware_header *hdr;
@@ -161,7 +156,6 @@ static const struct amd_ip_funcs isp_ip_funcs = {
161156
.late_init = NULL,
162157
.hw_init = isp_hw_init,
163158
.hw_fini = isp_hw_fini,
164-
.suspend = isp_suspend,
165159
.is_idle = isp_is_idle,
166160
.wait_for_idle = isp_wait_for_idle,
167161
.soft_reset = isp_soft_reset,

drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ static int amdgpu_vkms_suspend(struct amdgpu_ip_block *ip_block)
613613
r = drm_mode_config_helper_suspend(adev_to_drm(adev));
614614
if (r)
615615
return r;
616-
return amdgpu_vkms_hw_fini(ip_block);
616+
617+
return 0;
617618
}
618619

619620
static int amdgpu_vkms_resume(struct amdgpu_ip_block *ip_block)

drivers/gpu/drm/amd/amdgpu/cik.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,11 +2143,6 @@ static int cik_common_hw_fini(struct amdgpu_ip_block *ip_block)
21432143
return 0;
21442144
}
21452145

2146-
static int cik_common_suspend(struct amdgpu_ip_block *ip_block)
2147-
{
2148-
return cik_common_hw_fini(ip_block);
2149-
}
2150-
21512146
static int cik_common_resume(struct amdgpu_ip_block *ip_block)
21522147
{
21532148
return cik_common_hw_init(ip_block);
@@ -2187,7 +2182,6 @@ static const struct amd_ip_funcs cik_common_ip_funcs = {
21872182
.late_init = NULL,
21882183
.hw_init = cik_common_hw_init,
21892184
.hw_fini = cik_common_hw_fini,
2190-
.suspend = cik_common_suspend,
21912185
.resume = cik_common_resume,
21922186
.is_idle = cik_common_is_idle,
21932187
.wait_for_idle = cik_common_wait_for_idle,

drivers/gpu/drm/amd/amdgpu/si.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,11 +2639,6 @@ static int si_common_hw_fini(struct amdgpu_ip_block *ip_block)
26392639
return 0;
26402640
}
26412641

2642-
static int si_common_suspend(struct amdgpu_ip_block *ip_block)
2643-
{
2644-
return si_common_hw_fini(ip_block);
2645-
}
2646-
26472642
static int si_common_resume(struct amdgpu_ip_block *ip_block)
26482643
{
26492644
return si_common_hw_init(ip_block);
@@ -2682,7 +2677,6 @@ static const struct amd_ip_funcs si_common_ip_funcs = {
26822677
.late_init = NULL,
26832678
.hw_init = si_common_hw_init,
26842679
.hw_fini = si_common_hw_fini,
2685-
.suspend = si_common_suspend,
26862680
.resume = si_common_resume,
26872681
.is_idle = si_common_is_idle,
26882682
.wait_for_idle = si_common_wait_for_idle,

0 commit comments

Comments
 (0)