aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2024-02-15 13:31:54 +0000
committerAlex Deucher <[email protected]>2024-02-22 17:05:20 +0000
commitbb87e511b21bbe071d712ebbd02efe31023023fc (patch)
treeb031e14078cfa32a32442524575263378c7bbad8 /drivers/gpu/drm/amd/amdgpu/atom.c
parentdrm/amdgpu: Simplify the allocation of sync slab caches (diff)
downloadkernel-bb87e511b21bbe071d712ebbd02efe31023023fc.tar.gz
kernel-bb87e511b21bbe071d712ebbd02efe31023023fc.zip
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 <[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/atom.c')
0 files changed, 0 insertions, 0 deletions