linux/drivers/gpu/drm/ast
Thomas Zimmermann 0ce91928ec drm/ast: astdp: Wake up during connector status detection
Power up the ASTDP connector for connection status detection if the
connector is not active. Keep it powered if a display is attached.

This fixes a bug where the connector does not come back after
disconnecting the display. The encoder's atomic_disable turns off
power on the physical connector. Further HPD reads will fail,
thus preventing the driver from detecting re-connected displays.

For connectors that are actively used, only test the HPD flag without
touching power.

Fixes: f81bb0ac78 ("drm/ast: report connection status on Display Port.")
Cc: Jocelyn Falempe <jfalempe@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.6+
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240717143319.104012-2-tzimmermann@suse.de
2024-07-30 10:17:14 +02:00
..
ast_ddc.c drm/ast: Define struct ast_ddc in ast_ddc.c 2024-04-11 09:38:17 +02:00
ast_ddc.h drm/ast: Define struct ast_ddc in ast_ddc.c 2024-04-11 09:38:17 +02:00
ast_dp.c drm/ast: astdp: Wake up during connector status detection 2024-07-30 10:17:14 +02:00
ast_dp501.c drm/ast: Rename AST_IO_CRTC_PORT to AST_IO_VGACRI 2023-10-19 13:55:33 +02:00
ast_dram_tables.h
ast_drv.c Merge drm/drm-fixes into drm-misc-fixes 2024-07-30 09:09:23 +02:00
ast_drv.h drm/ast: astdp: Wake up during connector status detection 2024-07-30 10:17:14 +02:00
ast_main.c drm/ast: Include <linux/of.h> where necessary 2024-04-02 10:40:43 +02:00
ast_mm.c drm/ast: Rename AST_IO_CRTC_PORT to AST_IO_VGACRI 2023-10-19 13:55:33 +02:00
ast_mode.c drm/ast: astdp: Wake up during connector status detection 2024-07-30 10:17:14 +02:00
ast_post.c drm/ast: Partially implement POST without ast device instance 2023-11-28 16:17:08 +01:00
ast_reg.h drm/ast: Inline ast_crtc_dpms() into callers 2024-07-03 09:38:23 +02:00
ast_tables.h drm/ast: Add resolution support for 1152x864@75 2022-09-20 10:19:32 +02:00
Kconfig drm: Only select I2C_ALGOBIT for drivers that actually need it 2023-01-10 11:15:44 +01:00
Makefile drm/ast: Move DDC code to ast_ddc.{c,h} 2024-04-02 10:40:46 +02:00