Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5767510rwb; Wed, 7 Sep 2022 07:44:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR52T/K8UKYdlH8qMwl7u6fTgLTjcWboYJ5FVwRYotJsdGa9mIaDGgDhWau7Vro6wibfSRj1 X-Received: by 2002:a05:6402:84e:b0:440:4bac:be5a with SMTP id b14-20020a056402084e00b004404bacbe5amr3439755edz.103.1662561874435; Wed, 07 Sep 2022 07:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662561874; cv=none; d=google.com; s=arc-20160816; b=0gIpG5KtbwGMnGxcdCY1CYVNyN+ejQ612pkJnjIpAGXNNPBN04n7LZTajmRuHHOc1N ljEzZ08E9z4BzaWVIgZtJI7V2kuKtyKBFeuR7u/Y1E6DcgXQ6jkQNhTJ4/21wdJj0Q2w YloLCyEGXvlnJria2+eABWXy0JRdvDfmzdpbuOTXMg5KkuQZxedF3e2CZOAtg1W1thtK VAwhRWvPy5DtqA+3+q2JReeAEZXqsweM3fzc8nWycfKCagqsB1+cT1qCE5crnZs2HQqb bwfvcPkWtY+TE9M/7hOUl9iR0M4vo+OoBERKAYFmSYnUM4lq6F8TxhKQNudScBB+ifLV z5tg== 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=G+dQi/CqDEAndi9GeELhOR4Fo+JzDcf4uQRnrofBKd8=; b=R+ci5bt/iS31Xx9pdkQ4kxswr/bZBtV+4Hh7LlfE6eSk13Z+Npnio/Xc6Yek9u7c+O VvJgL83iCd1ApZR5KnHH+dmDZdb1wgQ0wass42SQf+wmgJdaKpEqJ/m0aneYu6C1FE68 Ljj9ehB3chHiNPyLfD3t6+GClKpJHjUTcH8qxXjOOr1LrUiQnIm3Katra3nsATEV6M8q YzUSwFcSUW2BCw9vf5UeB7mIMTbcP5+CiGbT+26M9imXsP2Z1COtc2G140aTJXAHS+TN KffcPCyDnHv5L93FZeRTAWlMirU7TqYhSySzLBkgeNWfD+/1mnRaMkiK6EFCSw3+H0mk kiqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=3FFUrZ7s; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=J1gj70Tq; 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 hs19-20020a1709073e9300b00770578d82e3si2943112ejc.572.2022.09.07.07.44.07; Wed, 07 Sep 2022 07:44:34 -0700 (PDT) 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=3FFUrZ7s; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=J1gj70Tq; 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 S229495AbiIGOiy (ORCPT + 99 others); Wed, 7 Sep 2022 10:38:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230372AbiIGOis (ORCPT ); Wed, 7 Sep 2022 10:38:48 -0400 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C73378595 for ; Wed, 7 Sep 2022 07:38:41 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 7F43F580314; Wed, 7 Sep 2022 10:38:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 07 Sep 2022 10:38:40 -0400 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=1662561520; x=1662568720; bh=G+dQi/CqDE Andi9GeELhOR4Fo+JzDcf4uQRnrofBKd8=; b=3FFUrZ7s6VxSN6vL5Cw4baUUa5 jDBnxlmgMIp8WXQLYEovPXCkQh6iup20i9PZhFoxra1kWYALiWJTZXWq3TmijN13 wOktSWoa4r9C2d/jfCHKOjD60uJdIV1cuw2dsF/I4D8umuBbgxF9XIjbv1CDZoRs RAQLXHXxejuH5YF82ejQpmx2qR/d4wDR6lZaS5Ovf+IX5gMMSapTfn7ISApQJDjD 0cPaQ+8P46SeUgUy1AQdKInb+GK1uCL3syzskNavZvuCAYDUHrpX04Rp+DupVEhJ EnsexyIYQUz53CjNBZqcaUnqrZP20gelrB0FmBIrMi5bOoPfrbStmlsSbntg== 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= fm2; t=1662561520; x=1662568720; bh=G+dQi/CqDEAndi9GeELhOR4Fo+Jz Dcf4uQRnrofBKd8=; b=J1gj70TqeaZBOD/8F/Ysvvj+yYSkSbaho7x/umphLAnU DUE17Aqnpoa9lFiXO0DkkIV7pC8wKxK+D2hZwIdoyWZthInu9EQK//CrgXd7BAr8 8fsdivkrN/oFOLjVGwBH91Yh0285SHGE/BsQMwS9TGegZp6Q5W5brP1C94HVf5Io /GjHfnowkowVZDMXD3MthtXJTnw5n6pt308G7686nBE8GmwZynE/kR4xruMshW8c idaoHumZSyBEg0wb9D8BPb12LjqHZD1EGRqaDa5ZJKhCd0GVZBxspLBG7bCc6E0c 4pBJt/G9KiCH+hndbmPhXbgfK9r4uRuAQVxjn8V+YA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedttddgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeejveefheefkeeiffegveelveetgffffeektdefuefhtedtgeejhefggedu ffffudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Sep 2022 10:38:39 -0400 (EDT) Date: Wed, 7 Sep 2022 16:38:37 +0200 From: Maxime Ripard To: Mateusz Kwiatkowski Cc: Geert Uytterhoeven , Ben Skeggs , David Airlie , Chen-Yu Tsai , Thomas Zimmermann , Jani Nikula , Lyude Paul , Philipp Zabel , Maarten Lankhorst , Rodrigo Vivi , Tvrtko Ursulin , Jernej Skrabec , Samuel Holland , Karol Herbst , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , Emma Anholt , Daniel Vetter , Joonas Lahtinen , Hans de Goede , Linux ARM , Phil Elwell , Intel Graphics Development , Dave Stevenson , DRI Development , Dom Cobley , Linux Kernel Mailing List , Nouveau Dev , linux-sunxi@lists.linux.dev Subject: Re: [PATCH v2 10/41] drm/modes: Add a function to generate analog display modes Message-ID: <20220907143837.ys76egf2yg5uyq2z@houat> References: <20220728-rpi-analog-tv-properties-v2-0-459522d653a7@cerno.tech> <20220728-rpi-analog-tv-properties-v2-10-459522d653a7@cerno.tech> <242d272b-5b79-986c-9aaf-64e62f6b37ff@gmail.com> <20220905133251.js26hxdosibx4r4i@houat> <6ac67d1f-e5b5-2687-372f-4146eed5cc5d@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nnvo5o5a2xq4dkin" Content-Disposition: inline In-Reply-To: <6ac67d1f-e5b5-2687-372f-4146eed5cc5d@gmail.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR 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 --nnvo5o5a2xq4dkin Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 05, 2022 at 06:32:14PM +0200, Mateusz Kwiatkowski wrote: > Hi Maxime, >=20 > W dniu 5.09.2022 o 15:32, Maxime Ripard pisze: > > Hi, > > > > On Wed, Aug 31, 2022 at 10:14:28AM +0200, Geert Uytterhoeven wrote: > >>>> +enum drm_mode_analog { > >>>> +=A0=A0=A0 DRM_MODE_ANALOG_NTSC, > >>>> +=A0=A0=A0 DRM_MODE_ANALOG_PAL, > >>>> +}; > >>> > >>> Using "NTSC" and "PAL" to describe the 50Hz and 60Hz analog TV modes = is common, > >>> but strictly speaking a misnomer. Those are color encoding systems, a= nd your > >>> patchset fully supports lesser used, but standard encodings for those= (e.g. > >>> PAL-M for 60Hz and SECAM for 50Hz). I'd propose switching to some mor= e neutral > >>> naming scheme. Some ideas: > >>> > >>> - DRM_MODE_ANALOG_60_HZ / DRM_MODE_ANALOG_50_HZ (after standard refre= sh rate) > >>> - DRM_MODE_ANALOG_525_LINES / DRM_MODE_ANALOG_625_LINES (after standa= rd line > >>>=A0=A0 count) > >> > >> IMHO these are bad names, as e.g. VGA640x480@60 is also analog, using > >> 60 Hz and 525 lines.=A0 Add "TV" to the name? > >> > >>> - DRM_MODE_ANALOG_JM / DRM_MODE_ANALOG_BDGHIKLN (after corresponding = ITU System > >>>=A0=A0 Letter Designations) > >> > >> Or DRM_MODE_ITU_*? > >> But given the long list of letters, this looks fragile to me. > > > > Does it matter at all? It's an internal API that isn't exposed at all. > > I'd rather have a common name that everyone can understand in this case > > rather than a *perfect* name where most will scratch their head > > wondering what it's about. >=20 > You may have a point. But in that case, maybe it'd make sense to at least= add > a short comment explaining what do you mean by "NTSC" and "PAL" in this c= ontext? Consider it done :) Maxime --nnvo5o5a2xq4dkin Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYxis7QAKCRDj7w1vZxhR xTvFAP9Y3LOGR153AWzkGlQJzp68VIaTnrTJdhwA2F1nff9iPAEA5bUMZNpshaSy QX+PeKcbA3F+gDjgQKft9KnC247cTgA= =3r/y -----END PGP SIGNATURE----- --nnvo5o5a2xq4dkin--