All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
To: Moahmmed Bilal <mohammed.bilal@intel.com>,
	<igt-dev@lists.freedesktop.org>
Cc: <jeevan.b@intel.com>, <kunal1.joshi@intel.com>
Subject: Re: [PATCH i-g-t 1/2] RFC: chamelium/kms_chamelium_hpd: add helper function to select connector port
Date: Fri, 5 Dec 2025 11:15:28 +0100	[thread overview]
Message-ID: <DEQ7DFXIHDP2.11AG20WFXU0U2@intel.com> (raw)
In-Reply-To: <20251205074602.658783-2-mohammed.bilal@intel.com>

Hi Moahmmed

On Fri Dec 5, 2025 at 8:46 AM CET, Moahmmed Bilal wrote:
> From: Mohammed Bilal <mohammed.bilal@intel.com>
>
> Introduce a new helper function get_port() which returns the
> chamelium_port matching the requested connector type.
> The helper iterates through the available ports and
> returns the first match, or NULL if no matching connector is found.
>
> Signed-off-by: Mohammed Bilal <mohammed.bilal@intel.com>
> ---
>  tests/chamelium/kms_chamelium_hpd.c | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>
> diff --git a/tests/chamelium/kms_chamelium_hpd.c b/tests/chamelium/kms_chamelium_hpd.c
> index 161f494e9..3c8af63bd 100644
> --- a/tests/chamelium/kms_chamelium_hpd.c
> +++ b/tests/chamelium/kms_chamelium_hpd.c
> @@ -158,6 +158,21 @@ enum test_modeset_mode {
>  	TEST_MODESET_OFF,
>  };
>  
> +__maybe_unused
This function is used in the next patch. If the use of __maybe_unused here
is intended to bypass current CI warnings, please remove this attribute in
the next patch to avoid confusion.

> +static struct chamelium_port *get_port(struct chamelium_port **ports,
> +				       int port_count, int connector_type)
It's a small detail, but please use uint for port_count.

BR
Seba

  reply	other threads:[~2025-12-05  9:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-05  7:46 [PATCH i-g-t 0/2] RFC: Fix chamelium port allocation during igt_fixture Moahmmed Bilal
2025-12-05  7:46 ` [PATCH i-g-t 1/2] RFC: chamelium/kms_chamelium_hpd: add helper function to select connector port Moahmmed Bilal
2025-12-05 10:15   ` Sebastian Brzezinka [this message]
2025-12-05  7:46 ` [PATCH i-g-t 2/2] RFC: chamelium/kms_chamelium_hpd: use helper function for connector lookup in DP/HDMI/VGA tests Moahmmed Bilal
2025-12-05 10:29   ` Sebastian Brzezinka
2025-12-08  5:31   ` B, Jeevan
2025-12-05 22:54 ` ✓ Xe.CI.BAT: success for RFC: Fix chamelium port allocation during igt_fixture (rev2) Patchwork
2025-12-05 23:19 ` ✓ i915.CI.BAT: " Patchwork
2025-12-06  9:30 ` ✗ Xe.CI.Full: failure " Patchwork
2025-12-07  3:34 ` ✗ i915.CI.Full: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-12-05  7:32 [PATCH i-g-t 0/2] RFC: Fix chamelium port allocation during igt_fixture Moahmmed Bilal
2025-12-05  7:32 ` [PATCH i-g-t 1/2] RFC: chamelium/kms_chamelium_hpd: add helper function to select connector port Moahmmed Bilal
2025-12-04 15:17 [PATCH i-g-t 0/2] RFC: Fix chamelium port allocation during igt_fixture Moahmmed Bilal
2025-12-04 15:17 ` [PATCH i-g-t 1/2] RFC: chamelium/kms_chamelium_hpd: add helper function to select connector port Moahmmed Bilal

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=DEQ7DFXIHDP2.11AG20WFXU0U2@intel.com \
    --to=sebastian.brzezinka@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=kunal1.joshi@intel.com \
    --cc=mohammed.bilal@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.