mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] vga-switcheroo: Allow VGA_SWITCHEROO to be enabled on LoongArch
@ 2026-10-29  1:36 Tianrui Zhao
  2026-10-29  8:16 ` Thomas Zimmermann
  0 siblings, 1 reply; 2+ messages in thread
From: Tianrui Zhao @ 2026-10-29  1:36 UTC (permalink / raw)
  To: David Airlie, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Simona Vetter, chenhuacai
  Cc: dri-devel, linux-kernel, wuqianhai, zhaotianrui

LoongArch systems with hybrid graphics (integrated +
discrete GPU) can benefit from the same GPU switching
mechanism that x86 laptops use. Relax the dependency
to allow VGA_SWITCHEROO to be built on LoongArch,
consistent with the existing dependencies on ACPI,
PCI, and FB=y.

Change-Id: I84d38fdfe5e1591495fb3681474a7f1f64281fa8
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
---
 drivers/gpu/vga/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/vga/Kconfig b/drivers/gpu/vga/Kconfig
index bad4bcee313..89edd1211aa 100644
--- a/drivers/gpu/vga/Kconfig
+++ b/drivers/gpu/vga/Kconfig
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config VGA_SWITCHEROO
 	bool "Laptop Hybrid Graphics - GPU switching support"
-	depends on X86
+	depends on X86 || LOONGARCH
 	depends on ACPI
 	depends on PCI
 	depends on FB=y
-- 
2.39.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-29  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29  1:36 [PATCH] vga-switcheroo: Allow VGA_SWITCHEROO to be enabled on LoongArch Tianrui Zhao
2026-10-29  8:16 ` Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®