[PATCH i-g-t] tests/intel/kms_pm_backlight: Remove eDP check for backlight

B, Jeevan jeevan.b at intel.com
Fri Sep 27 06:14:17 UTC 2024



> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> Mohammed Thasleem
> Sent: Friday, September 27, 2024 1:15 AM
> To: igt-dev at lists.freedesktop.org
> Cc: Thasleem, Mohammed <mohammed.thasleem at intel.com>
> Subject: [PATCH i-g-t] tests/intel/kms_pm_backlight: Remove eDP check for
> backlight
> 
> Backlight not only for eDP, it should be used for all internal connected panel.
> 
> Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>

LGTM. 

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

> ---
>  tests/intel/kms_pm_backlight.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/intel/kms_pm_backlight.c
> b/tests/intel/kms_pm_backlight.c index 140a95bcc..6f1e24bac 100644
> --- a/tests/intel/kms_pm_backlight.c
> +++ b/tests/intel/kms_pm_backlight.c
> @@ -292,7 +292,7 @@ igt_main
>  		igt_display_require(&display,
> drm_open_driver(DRIVER_INTEL | DRIVER_XE));
> 
>  		for_each_connected_output(&display, output) {
> -			if (output->config.connector->connector_type !=
> DRM_MODE_CONNECTOR_eDP)
> +			if (!output_is_internal_panel(output))
>  				continue;
> 
>  			if (found)
> --
> 2.25.1



More information about the igt-dev mailing list