aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2024-02-15 13:31:53 +0000
committerAlex Deucher <[email protected]>2024-02-22 15:30:50 +0000
commit756762aeb11ae1befbbcb7a04cf213a0a67c2646 (patch)
tree1f6861edc54b4fb58c1850e918c6ead1feb1e78a /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parentdrm/amd/display: Fix memory leak in dm_sw_fini() (diff)
downloadkernel-756762aeb11ae1befbbcb7a04cf213a0a67c2646.tar.gz
kernel-756762aeb11ae1befbbcb7a04cf213a0a67c2646.zip
drm/radeon: 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 <[email protected]> Suggested-by: Lukas Wunner <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions