]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: wrong array index to get ip block for PSP
authorJiang Liu <gerry@linux.alibaba.com>
Wed, 8 Jan 2025 13:59:53 +0000 (21:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jan 2025 21:02:56 +0000 (16:02 -0500)
commitedec9b0690906f37024b0dc74a0a924006a2ff07
tree5803472809dd12e7e25fcc3c3fd48269b169471f
parent60a2c0c12b644450e420ffc42291d1eb248bacb7
drm/amdgpu: wrong array index to get ip block for PSP

The adev->ip_blocks array is not indexed by AMD_IP_BLOCK_TYPE_xxx,
instead we should call amdgpu_device_ip_get_ip_block() to get the
corresponding IP block oject.

Fix some checkpatch issues (Alex)

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c