]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/powerplay: correct i2c eeprom init/fini sequence
authorEvan Quan <evan.quan@amd.com>
Mon, 13 Apr 2020 05:26:22 +0000 (13:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:45 +0000 (18:11 -0400)
commit94e0805ba929d7907c63fde8ef676feca62412e3
tree3569353881ac596c14ffaaa2808bed114a8b47cd
parent56ddddaaccbf15af50e0cac56873de5231c03130
drm/amd/powerplay: correct i2c eeprom init/fini sequence

As data transfer may starts immediately after i2c eeprom init
completed. Thus i2c eeprom should be initialized after SMU
ready. And i2c data transfer should be prohibited when SMU
down. That is the i2c eeprom fini sequence needs to be
updated also.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_internal.h