drm/amdgpu: simplify amdgpu_ras_eeprom.c
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Mar 2023 00:09:08 +0000 (20:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:39:26 +0000 (18:39 +0100)
commit4ccb34d4313b81d6268b1e68bd9a4e7309f096f6
tree705a79a111fdf629df61d4786f586685c1e3e8b0
parentaf6b1f1156fc2d886251a076b87243597301437c
drm/amdgpu: simplify amdgpu_ras_eeprom.c

[ Upstream commit 6246059a19d4cd32ef1af42a6ab016b779cd68c4 ]

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>
Stable-dep-of: e0409021e34a ("drm/amdgpu: Update EEPROM I2C address for smu v13_0_0")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c