]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Don't offset by 2 in FRU EEPROM
authorLuben Tuikov <luben.tuikov@amd.com>
Fri, 4 Feb 2022 00:05:20 +0000 (19:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:04 +0000 (13:58 +0200)
commit6f34538876bfd7669ca4f0740e38c4b57283083d
tree773cf574f210dde1c0a1a87a0b70d34a9ed1789f
parentd46833eadcc3993f933786e7c0c9f4d1586e1a03
drm/amdgpu: Don't offset by 2 in FRU EEPROM

[ Upstream commit 3f3a24a0a3a58677d2b4f3c442d7a1be05afb123 ]

Read buffers no longer expose the I2C address, and so we don't need to
offset by two when we get the read data.

Cc: Alex Deucher <Alexander.Deucher@amd.com>
Cc: Kent Russell <kent.russell@amd.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Fixes: bd607166af7fe3 ("drm/amdgpu: Enable reading FRU chip via I2C v3")
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c