Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1521948rwb; Mon, 7 Nov 2022 02:36:43 -0800 (PST) X-Google-Smtp-Source: AMsMyM7YGCsriOGSA6JuG8RDT5bl3V9hoPac87KN06/vZXpLVwrVKnOYhe8XXaxLDlvwRVWIGvVi X-Received: by 2002:a17:907:d91:b0:7ad:e178:9fe5 with SMTP id go17-20020a1709070d9100b007ade1789fe5mr36499983ejc.476.1667817403474; Mon, 07 Nov 2022 02:36:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667817403; cv=none; d=google.com; s=arc-20160816; b=VUJKYsIs61ZbLO9T3kJtrOTY7XZIz9As9ucP0/h4zloeleHmE2VVwk1hL+yWzDNid9 2WWRDwehz0qlkGulpsUHXqO+Luu2ROyTDAEtgSCJk/eQ4f/gmOFfLtRxKjUnU8PP1TEl 5xbL8JFo+eghbsaXt2LE7XmlXac2yyncSRTpYBkEV0RKjUxIYHbX49I8FEbSEnd77RF4 jIbcSSwVmfAmZcgszI7l4dSZTvS+C+dvzhVsOb1SaZ+FlTyRM/1TSW9vAeaCqcRxUDMU cJI4CQERo/veMJzb6tYsGUcHgtMpIyQ6pCTSUsXc+6ZSIS9zIE4Zo096/Tr8yJBNodXd IQJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=H188XHf92etTDREXnb/OEU+uV1P6JQ1CLPf/Yjdde+M=; b=vmt1+qailXDKFgMjWgDR6/5MHPgcQkLFlht6xPR5xKdCZDIWnygrScfvIKH7DK/aZx rSuY2QWCW0KMaCQV76PkVI9/ji9NweIDg38LW1INqKjF3twSr/frHcrhe/eAMRr2dl+U 7rPCexRlggV77T9c17omNPYuY0PAf2iBvDvja6r0+LttK0iB90jHIXyI4cCvI10Xl1L2 G5NwsJ5noB3tttDFT5pbPrH2A3UAnFosAHI21FDJdMyQAFYvmsNkgda8Ln59XaumJY4o ykM5wK8yKjdmpq+sqOrr7x6oiZfuTYzsn36O1Zc+GQnc8NiqjHtA6KqL6QuVTv8fQV40 TcbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=gEu++7F4; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GPwBvSEh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a170906bc4600b007ad88f87ed6si6740532ejv.993.2022.11.07.02.36.21; Mon, 07 Nov 2022 02:36:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=gEu++7F4; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GPwBvSEh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231696AbiKGKIB (ORCPT + 95 others); Mon, 7 Nov 2022 05:08:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231349AbiKGKIA (ORCPT ); Mon, 7 Nov 2022 05:08:00 -0500 Received: from wnew1-smtp.messagingengine.com (wnew1-smtp.messagingengine.com [64.147.123.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 763B715816 for ; Mon, 7 Nov 2022 02:07:59 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 49D4E2B060A4; Mon, 7 Nov 2022 05:07:54 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 07 Nov 2022 05:07:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1667815673; x=1667822873; bh=H188XHf92e tTDREXnb/OEU+uV1P6JQ1CLPf/Yjdde+M=; b=gEu++7F4AOlflnhqJ5+fnbojCK nkwxbyG1C9qowPqmGKvGXMfSnZd6Na5Cv9NZc9vFSXozr0ESux2jCMak+G2yFE8v MRzjga1u5opjXxwqvSqZfjde5PoujC57ardG3mpdwwQDOxZxwc64AY90SeESm1vN 4gE+nXkcGGxEbSLlyJ731jwgbcpXqQuvjgJub0eB8pwqZAiinUtQ8f2iJmdkVCE4 BIxqpv/330HO8THURUc28ZD79L+iHrB19SHbRInPdsvoaHzVbq1AYHReSZLLVc9M KbAB4lzMj2Gmvu/WoqVnAECku015lEjiIwihD8aGuOvH5wanb/d+Ca+VWDtQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1667815673; x=1667822873; bh=H188XHf92etTDREXnb/OEU+uV1P6 JQ1CLPf/Yjdde+M=; b=GPwBvSEh+VbRha1ATDffxsUxKJoKHXR0U4/4a72EmZ8m cvfOAdBBsFYfn1A+CaJfX0/fipVj7UC9aX9mz+sNlvWy8wC1e31MTWnviAeODQGa EUeHf0O2qXXPjiczR42LfsVeOc6+g3odf0RnzSFQvyG6nNKS8sJAaK9VMrrN7rg1 +Gm10gYCJVRLDhFQ9+9nsv1bfInv6kJ0jwf9x44kiYI8V4zI7Rl4fZYTT6LqFhDK emDylnIlbdMhmhT7jsKRpb97XHqH/xiaujF1mXFbix4zBDhEveG4Dm2phwDSx5TL vVEot2nZ2gCC9DfW3n9JGnhQfOqxTr/8e4RSE7WL5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdekgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehgtderredttddunecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepjeevfeehfeekieffgeevleevtefgffefkedtfeeuhfettdegjeehgfegudff ffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 05:07:52 -0500 (EST) Date: Mon, 7 Nov 2022 11:07:51 +0100 From: Maxime Ripard To: Noralf =?utf-8?Q?Tr=C3=B8nnes?= Cc: Mateusz Kwiatkowski , Karol Herbst , Emma Anholt , Ben Skeggs , Chen-Yu Tsai , Rodrigo Vivi , Maarten Lankhorst , Jani Nikula , Daniel Vetter , Thomas Zimmermann , Tvrtko Ursulin , Samuel Holland , Jernej Skrabec , David Airlie , Joonas Lahtinen , Lyude Paul , linux-sunxi@lists.linux.dev, intel-gfx@lists.freedesktop.org, Phil Elwell , linux-arm-kernel@lists.infradead.org, nouveau@lists.freedesktop.org, Hans de Goede , Dom Cobley , dri-devel@lists.freedesktop.org, Dave Stevenson , linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH v6 16/23] drm/probe-helper: Provide a TV get_modes helper Message-ID: <20221107100751.neijajfrazxloldp@houat> References: <20220728-rpi-analog-tv-properties-v6-0-e7792734108f@cerno.tech> <20220728-rpi-analog-tv-properties-v6-16-e7792734108f@cerno.tech> <8d0eee22-50f5-5b0a-c1e6-c5f61dd5bbcd@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gnrypjdevshxh5ih" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gnrypjdevshxh5ih Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Noralf, On Sun, Nov 06, 2022 at 05:59:23PM +0100, Noralf Tr=F8nnes wrote: >=20 >=20 > Den 27.10.2022 00.02, skrev Mateusz Kwiatkowski: > > Hi Maxime, > >=20 > > First of all, nice idea with the helper function that can be reused by = different > > drivers. This is neat! > >=20 > > But looking at this function, it feels a bit overcomplicated. You're cr= eating > > the two modes, then checking which one is the default, then set the pre= ferred > > one and possibly reorder them. Maybe it can be simplified somehow? > >=20 > > Although when I tried to refactor it myself, I ended up with something = that's > > not better at all. Maybe it needs to be complicated, after all :( > >=20 >=20 > I also thought that the function was complicated/difficult to read, in > particular the index stuff at the end, but I also failed in finding a > "better" solution, just a different one ;) I think I like yours better still :) Can I bring it into my series, with your authorship and SoB? Maxime --gnrypjdevshxh5ih Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCY2jY9wAKCRDj7w1vZxhR xQwNAP4m8wqBDbHwkCGeLkJY5dnG5iYXcSUpkoA/Zr4bM1OOTgD/fQIl3YCLdhl3 wENLHmgU8SYR+x7PQD/yXPYL48w/Cgk= =0OBV -----END PGP SIGNATURE----- --gnrypjdevshxh5ih--