public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Ville Syrjala <ville.syrjala@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 4/4] tests/kms_hdmi_inject: Accept any HDMI connector
Date: Wed,  7 Nov 2018 19:39:25 +0200	[thread overview]
Message-ID: <20181107173925.12486-4-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <20181107173925.12486-1-ville.syrjala@linux.intel.com>

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Connector forcing works just fine even if it already has
something physically connected. So accept any HDMI connector
for the test.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/kms_hdmi_inject.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c
index d26200006850..caf63064d899 100644
--- a/tests/kms_hdmi_inject.c
+++ b/tests/kms_hdmi_inject.c
@@ -41,8 +41,7 @@ get_connector(int drm_fd, drmModeRes *res)
 		connector =
 			drmModeGetConnectorCurrent(drm_fd, res->connectors[i]);
 
-		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA &&
-		    connector->connection == DRM_MODE_DISCONNECTED)
+		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)
 			break;
 
 		drmModeFreeConnector(connector);
-- 
2.18.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2018-11-07 17:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-07 17:39 [igt-dev] [PATCH i-g-t 1/4] tests/kms_3d: Unset all crtcs before the test Ville Syrjala
2018-11-07 17:39 ` [igt-dev] [PATCH i-g-t 2/4] tests/kms_hdmi_inject: " Ville Syrjala
2018-11-07 17:39 ` [igt-dev] [PATCH i-g-t 3/4] tests/kms_3d: Accept any HDMI connector Ville Syrjala
2018-11-07 17:39 ` Ville Syrjala [this message]
2018-11-07 19:53 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/4] tests/kms_3d: Unset all crtcs before the test Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2019-07-25 12:35 [igt-dev] [PATCH i-g-t 1/4] " Arkadiusz Hiler
2019-07-25 12:35 ` [igt-dev] [PATCH i-g-t 4/4] tests/kms_hdmi_inject: Accept any HDMI connector Arkadiusz Hiler
2019-07-25 12:49   ` Ser, Simon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181107173925.12486-4-ville.syrjala@linux.intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox