drm/amdgpu: simplify amdgpu_ras_eeprom.c
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Mar 2023 00:09:08 +0000 (20:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Apr 2023 04:13:23 +0000 (00:13 -0400)
commit6246059a19d4cd32ef1af42a6ab016b779cd68c4
tree40078420a030b4f86df18a3012294710e7ccfdaa
parent27488686cb1835f1c69d3efb0eedeb411f675d73
drm/amdgpu: simplify amdgpu_ras_eeprom.c

All chips that support RAS also support IP discovery, so
use the IP versions rather than a mix of IP versions and
asic types.  Checking the validity of the atom_ctx pointer
is not required as the vbios is already fetched at this
point.

v2: add comments to id asic types based on feedback from Luben

Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Luben Tuikov <luben.tuikov@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c