]> git.hungrycats.org Git - linux/commit
drm/amdgpu: don't use pci_is_thunderbolt_attached()
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Oct 2023 20:30:00 +0000 (16:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:15:18 +0000 (17:15 +0000)
commit045d5eec88d2b6c7a72620838f3addbc0b87d7c5
tree6dc20dd850e3d99897c0777b761bfcdc90303698
parent02eb46bb2150f991c40b59c77951c5652e3c7258
drm/amdgpu: don't use pci_is_thunderbolt_attached()

commit 7b1c6263eaf4fd64ffe1cafdc504a42ee4bfbb33 upstream.

It's only valid on Intel systems with the Intel VSEC.
Use dev_is_removable() instead.  This should do the right
thing regardless of the platform.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2925
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c