[igt-dev] [PATCH i-g-t 1/3] lib/igt_chamelium: reset chamelium before starting autodiscovery

B, Jeevan jeevan.b at intel.com
Fri Jul 14 06:15:10 UTC 2023


LGTM 
Reviewed-by: Jeevan B <jeevan.b at intel.com>

> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Kunal Joshi
> Sent: Thursday, July 13, 2023 2:47 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Joshi, Kunal1 <kunal1.joshi at intel.com>
> Subject: [igt-dev] [PATCH i-g-t 1/3] lib/igt_chamelium: reset chamelium before
> starting autodiscovery
> 
> TypeC connector need disabling modeset for correctly doing hpd cycle so do it
> before going for autodiscovery
> 
> Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
> ---
>  lib/igt_chamelium.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c index
> a235f3c87..95983ff25 100644
> --- a/lib/igt_chamelium.c
> +++ b/lib/igt_chamelium.c
> @@ -2903,6 +2903,13 @@ struct chamelium *chamelium_init(int drm_fd,
> igt_display_t *display)
>  	chamelium->drm_fd = dup(drm_fd);
>  	IGT_INIT_LIST_HEAD(&chamelium->edids);
> 
> +	/*
> +	 * Reset the chamelium and do a disabling modeset for
> +	 * TypeC connector to come up nicely
> +	 */
> +	chamelium_reset(chamelium);
> +	igt_modeset_disable_all_outputs(display);
> +
>  	if (!chamelium_read_port_mappings(chamelium, drm_fd))
>  		goto error;
> 
> --
> 2.25.1



More information about the igt-dev mailing list