drm/ast: astdp: Simplify power management when detecting display
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 15 Aug 2024 15:18:47 +0000 (17:18 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 22 Aug 2024 07:13:01 +0000 (09:13 +0200)
commit770a961d581c577b579d8d38414b2bfc0b4766c2
tree33c37963a107e37db487c4029d40d29f862b71e9
parent0e35457eb4b75f2bc9eca58a46d12e200e15e47f
drm/ast: astdp: Simplify power management when detecting display

Remove the CRTC handling in the ASTDP detect_ctx helper and enable
power while the detecting the display. Unconditionally wait a few
milliseconds after switching power. Simplifies the code and makes it
more robust.

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