diff options
author | Evan Quan <evan.quan@amd.com> | 2021-11-29 06:05:28 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-01-26 02:00:32 +0300 |
commit | e0638c7abc4d3d3c46e8f2fc07e02c3877c3c402 (patch) | |
tree | 80c90e51bd3a69b295160c601fbfcb378a20cc75 /drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | |
parent | 239d6de307b0dd1d48ec9b935b57531f07f6db11 (diff) | |
download | linux-e0638c7abc4d3d3c46e8f2fc07e02c3877c3c402.tar.xz |
drm/amd/pm: drop unneeded lock protection smu->mutex
As all those APIs are already protected either by adev->pm.mutex
or smu->message_lock.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c index d3963bfe5c89..1b265b8c7996 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c @@ -2118,9 +2118,9 @@ static int arcturus_i2c_xfer(struct i2c_adapter *i2c_adap, } } } - mutex_lock(&smu->mutex); + mutex_lock(&adev->pm.mutex); r = smu_cmn_update_table(smu, SMU_TABLE_I2C_COMMANDS, 0, req, true); - mutex_unlock(&smu->mutex); + mutex_unlock(&adev->pm.mutex); if (r) goto fail; |