summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYang Wang <kevinyang.wang@amd.com>2026-08-12 11:08:40 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-08-19 10:08:54 -0400
commit8587d48d694da5aca580f92461658ec14470592b (patch)
tree9e0273845a54b1d57b7760886c31cc9d97d4a4df /scripts
parentfd65d1742992361fc2201ecb4e43411e6e417fcb (diff)
downloadlinux-8587d48d694da5aca580f92461658ec14470592b.tar.gz
linux-8587d48d694da5aca580f92461658ec14470592b.zip
drm/amdgpu: check thunderbolt before switcheroo registration
Introduce a helper to consolidate the vga_switcheroo registration condition used by the init and fini paths. Keep the explicit pci_is_thunderbolt_attached() check, as dev_is_removable() does not provide equivalent coverage for Thunderbolt-attached GPUs. This ensures such devices remain excluded from switcheroo registration while preserving the existing PX and Apple gmux handling. Cc: stable@vger.kernel.org Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions