drm/amdgpu: update the handle ptr in wait_for_idle

Update the *handle to amdgpu_ip_block ptr for all
functions pointers of wait_for_idle.

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>
This commit is contained in:
Sunil Khatri
2024-09-30 16:29:15 +05:30
committed by Alex Deucher
parent ded57e4951
commit 82ae6619a4
79 changed files with 219 additions and 157 deletions

View File

@@ -546,9 +546,9 @@ static bool jpeg_v5_0_0_is_idle(void *handle)
return ret;
}
static int jpeg_v5_0_0_wait_for_idle(void *handle)
static int jpeg_v5_0_0_wait_for_idle(struct amdgpu_ip_block *ip_block)
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
struct amdgpu_device *adev = ip_block->adev;
return SOC15_WAIT_ON_RREG(JPEG, 0, regUVD_JRBC_STATUS,
UVD_JRBC_STATUS__RB_JOB_DONE_MASK,