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>
Tue, 17 Sep 2019 19:23:58 +0000 (14:23 -0500)
commit1963b7c3beda608501deaf9010b53ec6cb6adbf1
treecd339ddf1cac2123f4da82704806016216635561
parentf79e06bd44e5be98b75f71ac0cde6c16be278180
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