]> www.infradead.org Git - users/willy/xarray.git/commit
drm/mgag200: Remove vidrst callbacks from struct mgag200_device_funcs
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Jul 2024 07:23:05 +0000 (09:23 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 15 Jul 2024 06:17:17 +0000 (08:17 +0200)
commit7bb97cf915884956311352eae3f444eaaae48cea
tree46d3c00450226ac695bb42959d97fcd094a6a3c3
parentcd3a2e8b0a0367c636cd82efaf7802cf85ae5dad
drm/mgag200: Remove vidrst callbacks from struct mgag200_device_funcs

The callbacks disable_vidrst and enable_vidrst are obsolete. Remove
the fields from struct mgag200_device_funcs. Instead call their
implementations directly of the field 'has_vidrst' has been set in
struct mgag200_device_info.

Also change the logic slightly. The BMC used to start and stop scanout
during the CRTC's atomic_enable and atomic_disable. Plane updates were
done while the BMC scanned out the display. Now only stop once in
atomic_disable at the beginning of a modeset and then restart the
scanout at the end of a modeset in atomic_enable. While the modeset
takes place, the BMC does not scanout at all.

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