]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit371868e5982035aa2770016fb0224d9ee74615fb
treec7475b52fca95bb7ff40cc622cb8a7ab4877fa3f
parentaff624d0bd9ca520b500bdaafc95b5412f7c45c7
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