drm/ast: vga: Transparently handle BMC support
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 15 Aug 2024 15:18:52 +0000 (17:18 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 22 Aug 2024 07:13:17 +0000 (09:13 +0200)
commit2a2391f857cdc5cf16f8df030944cef8d3d2bc30
treefb3327ef89df97e90d3f7f2ab01549e312630b1d
parentd20c2f8464280550aeabd2766728590cf0ca8a4d
drm/ast: vga: Transparently handle BMC support

Permanently set the connector status to 'connected'. Return BMC modes
for connector if no display is attached to the physical DP connector.
Otherwise use EDID modes as before.

If the status of the physical connector changes, the driver still
generates a hotplug event. DRM clients will then reconfigure their
output to a mode appropriate for either physical display or BMC.

v3:
- use struct ast_connector.physical_status to handle BMC

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240815151953.184679-11-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_vga.c