]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mgag200: vga-bmc: Control BMC scanout from encoder
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 5 Aug 2024 13:06:00 +0000 (15:06 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 9 Aug 2024 06:13:47 +0000 (08:13 +0200)
commit0f9ff361ad823b887cfb09dd78ecc8f25d32ecfa
tree0828ba1c89b5bb13c2172a2c3f3d870ef9a76f33
parent9d09cac47de5358ace64dddd14278fea002e68c3
drm/mgag200: vga-bmc: Control BMC scanout from encoder

Move calls to stop and start BMC scanout from CRTC helpers to the
VGA-BMC encoder's atomic_disable and atomic_enable. Makes the BMC
scanout transparent to the CRTC.

DRM's atomic helpers call an encoder's atomic_disable and atomic_enable
helpers for all enabled encoders. The BMC stops scanning out the VGA
signal if modeset disables the VGA encoder, and starts scanning out
if the modeset enables the VGA encoder.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240805130622.63458-5-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_g200er.c
drivers/gpu/drm/mgag200/mgag200_g200ev.c
drivers/gpu/drm/mgag200/mgag200_g200se.c
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/mgag200/mgag200_vga_bmc.c