]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Move EEPROM I2C adapter to amdgpu_device
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 12 Mar 2020 21:11:32 +0000 (17:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Mar 2020 20:21:32 +0000 (16:21 -0400)
commit4c733aced342acd8fa043029a378cd7fc92d08a2
tree2ae5e19bf2ffb4cd0a48f7c0510b1795fa4daac7
parenta7c628e34f324b9d0df8b71bab4e53bc75fd9d02
drm/amdgpu: Move EEPROM I2C adapter to amdgpu_device

Puts the i2c adapter in common place for sharing by RAS
and upcoming data read from FRU EEPROM feature.

v2:
Move i2c adapter to amdgpu_pm and rename it.

v3: Move i2c adapter init to ASIC specific code and get rid
of the switch case in amdgpu_device

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h
drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c