drm/amdgpu: add a mutex for the smu11 i2c bus (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Jan 2021 21:39:59 +0000 (16:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:24:39 +0000 (00:24 -0400)
commit6963d6c176fe36c775996cfd6886d4c4234ccd9e
treec7475b52fca95bb7ff40cc622cb8a7ab4877fa3f
parent93c5bcd4eaaafd7c25c062089806c86d9b7890dd
drm/amdgpu: add a mutex for the smu11 i2c bus (v2)

So we lock software as well as hardware access to the bus.

v2: fix mutex handling.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h