diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-02-15 15:31:54 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-02-22 12:05:20 -0500 |
commit | bb87e511b21bbe071d712ebbd02efe31023023fc (patch) | |
tree | b031e14078cfa32a32442524575263378c7bbad8 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |
parent | a5fc4e5014cde7b4abd5a95eb1f6ec487de42a9c (diff) |
drm/amdgpu: Use RMW accessors for changing LNKCTL2
Convert open coded RMW accesses for LNKCTL2 to use
pcie_capability_clear_and_set_word() which makes its easier to
understand what the code tries to do.
LNKCTL2 is not really owned by any driver because it is a collection of
control bits that PCI core might need to touch. RMW accessors already
have support for proper locking for a selected set of registers
(LNKCTL2 is not yet among them but likely will be in the future) to
avoid losing concurrent updates.
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Suggested-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
0 files changed, 0 insertions, 0 deletions