drm/amdgpu:Fix EEPROM checksum calculation.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 12 Sep 2019 21:16:32 +0000 (17:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 20:30:44 +0000 (15:30 -0500)
commitdb338e16638465cb8053bcb8d9c9778788545463
tree9f6a2f642acc46df4003d1750d2ac9058e05eaf3
parent012dd14d1de63b7443a8cec4ad9046c85a7184a5
drm/amdgpu:Fix EEPROM checksum calculation.

Fix checksum calculation after manually resetting the table.
Unify reset and empty EEPROM init flow.
Protect the table reset with lock.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c