drm/amdgpu: fix amdgpu_need_full_reset (v2)
IP types are not an index. Each asic may have number and type of IPs. Properly check the the type rather than using the type id as an index. v2: fix all the IPs to not use IP type as an idx as well. Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
@@ -165,7 +165,7 @@ struct amd_ip_funcs {
|
||||
/* poll for idle */
|
||||
int (*wait_for_idle)(void *handle);
|
||||
/* check soft reset the IP block */
|
||||
int (*check_soft_reset)(void *handle);
|
||||
bool (*check_soft_reset)(void *handle);
|
||||
/* pre soft reset the IP block */
|
||||
int (*pre_soft_reset)(void *handle);
|
||||
/* soft reset the IP block */
|
||||
|
Reference in New Issue
Block a user