From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA97610E11F for ; Thu, 23 Mar 2023 14:32:08 +0000 (UTC) Message-ID: Date: Thu, 23 Mar 2023 20:01:40 +0530 To: Kunal Joshi , References: <20230315100657.3385384-1-kunal1.joshi@intel.com> <20230315100657.3385384-2-kunal1.joshi@intel.com> Content-Language: en-US From: Karthik B S In-Reply-To: <20230315100657.3385384-2-kunal1.joshi@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Subject: Re: [igt-dev] [PATCH 1/2] tests/chamelium/kms_chamelium_edid: reset state before starting subtest List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On 3/15/2023 3:36 PM, Kunal Joshi wrote: > In some subtests of kms_chamelium_edid we were trying > to plug a port that could already be plugged, so > reset chamelium state at the start > > Signed-off-by: Kunal Joshi Reviewed-by: Karthik B S > --- > tests/chamelium/kms_chamelium_edid.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tests/chamelium/kms_chamelium_edid.c b/tests/chamelium/kms_chamelium_edid.c > index f7609932..e2b6c48f 100644 > --- a/tests/chamelium/kms_chamelium_edid.c > +++ b/tests/chamelium/kms_chamelium_edid.c > @@ -190,6 +190,9 @@ static void edid_stress_resolution(chamelium_data_t *data, > int i; > struct chamelium *chamelium = data->chamelium; > struct udev_monitor *mon = igt_watch_uevents(); > + chamelium_reset_state(&data->display, data->chamelium, port, > + data->ports, data->port_count); > + > > for (i = 0; i < edids_list_len; ++i) { > struct chamelium_edid *chamelium_edid;