]> git.itanic.dy.fi Git - linux-stable/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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Nov 2023 15:59:44 +0000 (11:59 -0400)
commit7b1c6263eaf4fd64ffe1cafdc504a42ee4bfbb33
tree1ee71463954c69acd7e130a32316d7141e6a4934
parent432e664e7c98c243fab4c3c95bd463bea3aeed28
drm/amdgpu: don't use pci_is_thunderbolt_attached()

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
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c