On Tue, Mar 24, 2026 at 1:57 PM Amber Lin <[email protected]> wrote: > > Update mes_v12_1_suspend and mes_v12_1_resume to line up with mes_v12_0. > > Signed-off-by: Amber Lin <[email protected]>
Reviewed-by: Alex Deucher <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/mes_v12_1.c | 14 +------------- > 1 file changed, 1 insertion(+), 13 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c > b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c > index 70d80c2aed52..4b279259b9d3 100644 > --- a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c > +++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c > @@ -1888,24 +1888,12 @@ static int mes_v12_1_hw_fini(struct amdgpu_ip_block > *ip_block) > > static int mes_v12_1_suspend(struct amdgpu_ip_block *ip_block) > { > - int r; > - > - r = amdgpu_mes_suspend(ip_block->adev); > - if (r) > - return r; > - > return mes_v12_1_hw_fini(ip_block); > } > > static int mes_v12_1_resume(struct amdgpu_ip_block *ip_block) > { > - int r; > - > - r = mes_v12_1_hw_init(ip_block); > - if (r) > - return r; > - > - return amdgpu_mes_resume(ip_block->adev); > + return mes_v12_1_hw_init(ip_block); > } > > static int mes_v12_1_early_init(struct amdgpu_ip_block *ip_block) > -- > 2.43.0 >
