drm/ast: astdp: Transparently handle BMC support
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 15 Aug 2024 15:18:48 +0000 (17:18 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 22 Aug 2024 07:13:04 +0000 (09:13 +0200)
commitbbad0090b9f4735e35e9881278b7a353f71b43d0
tree2e49860af7b859d8ecd736f4b71faa6f21ae5688
parent770a961d581c577b579d8d38414b2bfc0b4766c2
drm/ast: astdp: 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-7-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_dp.c