]> git.hungrycats.org Git - linux/commit
fbdev: Wrap fbcon updates from vga-switcheroo in helper
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 27 May 2026 15:14:04 +0000 (17:14 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 9 Jun 2026 14:00:11 +0000 (16:00 +0200)
commit2f4230fad9a7af4ebfbadbc3df5c1d99dc9320b1
treed14072d8a25dbbbea212d5293332757c8350d169
parent8ef78cae98b5bb6a627f50339d2a2e85198ad7d3
fbdev: Wrap fbcon updates from vga-switcheroo in helper

Handle console remapping in fbcon in fb_switch_output(). Vga-switcheroo
invokes this functionality before switching physical outputs to a new
graphics device. Open-coding fbcon state in vga-switcheroo exposed fbdev
implementation details.

Vga-switcheroo is used for switching physical outputs among graphics
hardware. This functionality is only supported by DRM drivers. A later
update will further move fb_switch_output() into DRM's fbdev emulation;
thus fully decoupling vga-switcheroo from fbdev.

v3:
- remove Kconfig dependency related to fbcon (Geert)
v2:
- use '#if defined' (Helge)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/gpu/vga/Kconfig
drivers/gpu/vga/vga_switcheroo.c
drivers/video/fbdev/core/fbmem.c
include/linux/fb.h