]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: move program_aspm to amdgpu_nbio
authorGabriel Almeida <gabrielsousa230@gmail.com>
Fri, 24 Apr 2026 00:49:09 +0000 (21:49 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2026 18:28:52 +0000 (14:28 -0400)
commit86931542d0ae02de2b819ce54a22a44596db6dac
treec6fb3fd9534bd6cdb32ed95cc3da3e9a19dc9581
parent2eb0681ea7604880ade2d715e4212132c393c132
drm/amdgpu: move program_aspm to amdgpu_nbio

The program_aspm helper is duplicated across multiple files with
identical logic.

Move it to amdgpu_nbio.c as amdgpu_nbio_program_aspm and update
all users accordingly.

Signed-off-by: Gabriel Almeida <gabrielsousa230@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
drivers/gpu/drm/amd/amdgpu/nv.c
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/amdgpu/soc21.c