File tree Expand file tree Collapse file tree
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
7469static 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 ,
Original file line number Diff line number Diff 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
619620static int amdgpu_vkms_resume (struct amdgpu_ip_block * ip_block )
Original file line number Diff line number Diff 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-
21512146static 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 ,
Original file line number Diff line number Diff 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-
26472642static 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 ,
You can’t perform that action at this time.
0 commit comments