drm/amdgpu: Add smu lock around in pp_smu_i2c_bus_access
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 3 Sep 2019 20:47:40 +0000 (16:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:50:04 +0000 (17:50 -0500)
commite6cbabcd70c7e6fd32766eb82baa50362ca9ae89
tree49ae2132b9fb70cd30e7806c9f20662c8f59df80
parenta5fc7ec1332cf388021c25e177ce4f68389084a0
drm/amdgpu: Add smu lock around in pp_smu_i2c_bus_access

Protect from concurrent SMU accesses.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-and-tested-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c