Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3332397rwb; Mon, 5 Sep 2022 09:48:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7PbcIWmAByAg/zIA23ZgBIRbhOpjEe5pPAagnqlHj+IDXkWgwjHuC7i2Bkpcy+wAsRGD1h X-Received: by 2002:a17:90b:1a91:b0:1fd:c26c:a3bf with SMTP id ng17-20020a17090b1a9100b001fdc26ca3bfmr20763465pjb.213.1662396491385; Mon, 05 Sep 2022 09:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662396491; cv=none; d=google.com; s=arc-20160816; b=pVToz+20CzBfLXsLAXiMv+OlUo2fBtmLKU01g4hiis7SRvD6Zzlw7yVIYAeCV3YsDY G50qsG17Lt4MmmvdVuQl39LndcMZMhK+EbjBmsCdT5zmvf1jKRvPmyVHB/GpXD3Abnb/ uMvBbMOzflgIjxExJwaUEjdAxD15+VvLHNdbmdf0KXGHXZEaLLW4qGkvVv1hpVNtMLwl Kl6eUZo46a1yrBqibTi3NkayvsAX2lKjRo57Kpp4GFZ/M4zOHH97+fn8q0Wk6qdx22mR icYNAnvegk6wqlB/b5nCYRqFZcUq9k9+ItK4vcxxQ67s2nXFzFfEeUFlXd5ijMcrOTXo /YWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:from:dkim-signature; bh=8JQHR0mNkkvaucEp4HNFvrtWVwipxgdCyYirWkcxCuc=; b=AqsaYDhFpkkGH7uWQdga+u05iBSJeYjp59KZqu8MoRHVsS1vwOEhb9idvhWSdQtGuN U7cZFQvvfy/j1DohzE3Yn2CIISvqDoJAQlVVX/2fJAg/iKg0W2qH4zFTselNmEV2xVyx /+na1Hqtph0Sy1+0pgnCBgrd5Y8HHR7h4YidmaiJNQ2pu9RYcFKVYbGA9LWeG53RGYEP wd9A0kZxT5E8GeHucZMjh+2Jf+9P649LjrnUH3W67qy/UJk45Ix185HXOMT0gWEdpWz5 DkP8XmO9MjTYOeLalILfD2WW3c98aPNFE7y6Tn+Vb5zZS4Uefztm6sip4b2Ai160MkbQ 6lig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Ee8/zXiC"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a170902ef4400b001755d722578si10964053plx.524.2022.09.05.09.47.58; Mon, 05 Sep 2022 09:48:11 -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=@gmail.com header.s=20210112 header.b="Ee8/zXiC"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231454AbiIEQcV (ORCPT + 99 others); Mon, 5 Sep 2022 12:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiIEQcU (ORCPT ); Mon, 5 Sep 2022 12:32:20 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D0A2A960 for ; Mon, 5 Sep 2022 09:32:18 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id x10so9756562ljq.4 for ; Mon, 05 Sep 2022 09:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:from:to:cc:subject:date; bh=8JQHR0mNkkvaucEp4HNFvrtWVwipxgdCyYirWkcxCuc=; b=Ee8/zXiC17K5Rmn0dM8r0JytBnfg1FnzFfKZcmoJMYt08MtgAEUEjpKH7+0UHsqlkK BZrCCHBnA1Je5o+/sxNlA3yrl0TxM37U7XpZXjbsaVxHKMl2x7PzYQchiiwPobO+z7V/ tYJCFJd1YCvEbeeLM6BvAS/M1DUr6tpSFJVdgoRwA8WStFNY9E6PPHdk4RZZCOrggakT xyQ8/6DOwLr6S51gainQauwtIl7r4PsEHnn/94yga+F5jpf0cp7C0OxDPl+JWqQDMoGv UZySK3bX2kiLPPNYAc06FY4U1q0dxZf5LlWu/claShZQeiMPrvC2bab0MTV9I+5YA40i L12g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date; bh=8JQHR0mNkkvaucEp4HNFvrtWVwipxgdCyYirWkcxCuc=; b=vddds149QsyZOeHcfeeZmchKo0g4tfCYKvmZnVk1bAu2oGhf7BdiB3HVM+PZ5f0xzk HYC3fuS1Zxxm/Wa1tZmVe81yEk33o5nekYz++RAVcD0apY/H8JpgKC1hMBHnx4YW2sJQ pVAcXkegW4DEoWlr4itnWoS/O8H0C5Eitc/1r5VrYQ18xXTaVnlU+ZZFfc4HUhVFJuU/ GszC1smxTVK5MaMIUjdQxiJMeLNx+i2TnmrAgrOSAY+H9opkxszoitgVPUAe6YWBYFx8 eYK20YvjSxbsxtUgDxykb8RSFAq3roDfNb8qAONTY6eNEwUM2VTd2GTCE41XI9HNzxl1 IPYA== X-Gm-Message-State: ACgBeo1bGSkGnspeFGAEKRiSeNKZX1sWBeFsTEq0XOGZLBHlCQMt+DyA Gwh156snJpi44kJ5UMzsXsc= X-Received: by 2002:a2e:88d2:0:b0:263:2c63:d784 with SMTP id a18-20020a2e88d2000000b002632c63d784mr11481762ljk.12.1662395536908; Mon, 05 Sep 2022 09:32:16 -0700 (PDT) Received: from ?IPV6:2a02:a31a:a240:1700:9c45:8fa1:8ce7:8852? ([2a02:a31a:a240:1700:9c45:8fa1:8ce7:8852]) by smtp.googlemail.com with ESMTPSA id q13-20020a056512210d00b004946a758d21sm1235189lfr.161.2022.09.05.09.32.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Sep 2022 09:32:16 -0700 (PDT) From: Mateusz Kwiatkowski X-Google-Original-From: Mateusz Kwiatkowski Message-ID: <6ac67d1f-e5b5-2687-372f-4146eed5cc5d@gmail.com> Date: Mon, 5 Sep 2022 18:32:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH v2 10/41] drm/modes: Add a function to generate analog display modes Content-Language: pl To: Maxime Ripard , Geert Uytterhoeven Cc: 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 , =?UTF-8?Q?Noralf_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 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> In-Reply-To: <20220905133251.js26hxdosibx4r4i@houat> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Maxime, 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 { >>>> +    DRM_MODE_ANALOG_NTSC, >>>> +    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, and 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 more neutral >>> naming scheme. Some ideas: >>> >>> - DRM_MODE_ANALOG_60_HZ / DRM_MODE_ANALOG_50_HZ (after standard refresh rate) >>> - DRM_MODE_ANALOG_525_LINES / DRM_MODE_ANALOG_625_LINES (after standard line >>>   count) >> >> IMHO these are bad names, as e.g. VGA640x480@60 is also analog, using >> 60 Hz and 525 lines.  Add "TV" to the name? >> >>> - DRM_MODE_ANALOG_JM / DRM_MODE_ANALOG_BDGHIKLN (after corresponding ITU System >>>   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. 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 context? Best regards, Mateusz Kwiatkowski