Re: [PATCH v5 12/13] drm/ast: Implement polling for VGA and SIL164 connectors

2024-03-22 Thread Maxime Ripard
On Fri, Mar 22, 2024 at 07:40:52AM +0100, Thomas Zimmermann wrote: > Hi > > Am 21.03.24 um 15:09 schrieb Maxime Ripard: > > Hi, > > > > On Wed, Mar 20, 2024 at 10:34:17AM +0100, Thomas Zimmermann wrote: > > > +/** > > > + * drm_connector_helper_detect_ctx - Read EDID and detect connector > > > s

Re: [PATCH v5 12/13] drm/ast: Implement polling for VGA and SIL164 connectors

2024-03-22 Thread Sui Jingfeng
Hi, On 2024/3/21 22:09, Maxime Ripard wrote: Hi, On Wed, Mar 20, 2024 at 10:34:17AM +0100, Thomas Zimmermann wrote: +/** + * drm_connector_helper_detect_ctx - Read EDID and detect connector status. + * @connector: The connector + * @ctx: Acquire context + * @force: Perform screen-destructive

Re: [PATCH v5 12/13] drm/ast: Implement polling for VGA and SIL164 connectors

2024-03-21 Thread Thomas Zimmermann
Hi Am 21.03.24 um 15:09 schrieb Maxime Ripard: Hi, On Wed, Mar 20, 2024 at 10:34:17AM +0100, Thomas Zimmermann wrote: +/** + * drm_connector_helper_detect_ctx - Read EDID and detect connector status. + * @connector: The connector + * @ctx: Acquire context + * @force: Perform screen-destructive

Re: [PATCH v5 12/13] drm/ast: Implement polling for VGA and SIL164 connectors

2024-03-21 Thread Maxime Ripard
Hi, On Wed, Mar 20, 2024 at 10:34:17AM +0100, Thomas Zimmermann wrote: > +/** > + * drm_connector_helper_detect_ctx - Read EDID and detect connector status. > + * @connector: The connector > + * @ctx: Acquire context > + * @force: Perform screen-destructive operations, if necessary > + * > + * Det

[PATCH v5 12/13] drm/ast: Implement polling for VGA and SIL164 connectors

2024-03-20 Thread Thomas Zimmermann
Implement polling for VGA and SIL164 connectors. Set the flag DRM_CONNECTOR_POLL_DISCONNECT for each to detect the removal of the monitor cable. Implement struct drm_connector_helper_funcs.detect_ctx for each type of connector by testing for EDID data. The helper drm_connector_helper_detect_ctx()