Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3443730rwi; Sun, 16 Oct 2022 10:59:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6EfysIS6jXGA3EH9vfTRQqh2LqTO6MxOZs2gsraPZ3Fa3UG6MAOo7Trr9DDxsL0E0CvBvK X-Received: by 2002:a17:90b:4b0c:b0:20d:233f:5dea with SMTP id lx12-20020a17090b4b0c00b0020d233f5deamr9220221pjb.241.1665943181398; Sun, 16 Oct 2022 10:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665943181; cv=none; d=google.com; s=arc-20160816; b=j32gpJNjzhhgrRCRVjZKRYSvYLSHcFRNL9SysRuJbOkIvX6+nOKaCBtlvKC05m/jrq Xht8I69vuV5WI8EoOlEWq5d/cjq+ddUuRqUrhUi9ldt8RN2ZnlmWq97dXbr6FeAfOcyD HaVdaHYQYo1c1vsDIImy4VQfu+QlAGuTWEwSNwT2oSeHavIMkydbOnqnsSOE4uZKz6+Q RwVObHRpr6eGuAdoXpZRZhtfhZaBNIzhdRUqwiZQ4vDaNigTsxP8LKN/2xpl6mw1Yzct 2yXy/9VaLY+lfyvQoy0Un9Mzn4GOHHIFouo4aT/KJB1Ta9P91F4iXileScE5we4ZRLaa H/iw== 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:reply-to:user-agent:mime-version :date:message-id:from:dkim-signature; bh=FSvBiCYAFX6lPPhtdeLD4dtO79D7my2I84dZLy/XCHA=; b=OfQlW9YhlDzsc6fUzItYR87hrU/z4OpD/CONQShG1tPw6Bgq/XPCV+TBwyORd2A5L1 5IZCFHmwy3ddyVNG+1X/przA+Z4gncBhYffiDAzBjNwKtFzCLd/CmHxV6xJ2hsbbVK1A nbawtYCpVNT3dS8Pg2ZW3Wee2V/supa8/Yax5t8slQEo46tTF6arKJiS/HaFjRTrhDgH B1DgN55MGUfMM9dwAitxywVdHMbDPaTS8jtx7dUL18VOPKwj/vA2B8cnlLBZ7ylphOdi cx9mFRNxZVhF7X9Dht6C2HHaVF9BD/arAl3xyq/nVS6PQaBRIJDS2lteaR9mv2cjes7R W8IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ay7zBp6e; 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 x191-20020a6386c8000000b0046040a85eacsi8173659pgd.538.2022.10.16.10.59.28; Sun, 16 Oct 2022 10:59:41 -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=ay7zBp6e; 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 S229655AbiJPRv5 (ORCPT + 99 others); Sun, 16 Oct 2022 13:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbiJPRvz (ORCPT ); Sun, 16 Oct 2022 13:51:55 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4D62C64B for ; Sun, 16 Oct 2022 10:51:54 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id x18so11552590ljm.1 for ; Sun, 16 Oct 2022 10:51:54 -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:reply-to:user-agent:mime-version:date :message-id:from:from:to:cc:subject:date:message-id:reply-to; bh=FSvBiCYAFX6lPPhtdeLD4dtO79D7my2I84dZLy/XCHA=; b=ay7zBp6erCUcdx6FCqT2TK/HFdYqQN5L/xbUe1GlX5+3Crva5NM/VI5goKhyYCSDr/ C3a2cTjgiv2cwV9Jf5grm1XNi83lynnESdVLS/CAJWiYr4Kx+nAA8S7JVhdymP9samaF FxNpKzY+0hk83mw8X6eEOgPij9413yyZzcoRk1QpY0HS+li7n0fwtJe5SYxhABuK/CSB 5IchUWAz7SI+rV2710qacP4Zc4axHL432f76uZ0OERw0Zls5PqGWfywzmDCIO8Wod2Cm KMzbrnuvXRvglZ1oOjabABd/gR6IRbHjcHXuE5WxxNzxwMZ5ymInbJi7k2FNnw63GuOC 2jAg== 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:reply-to:user-agent:mime-version:date :message-id:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FSvBiCYAFX6lPPhtdeLD4dtO79D7my2I84dZLy/XCHA=; b=iJcj0A7aGWKHgD57jSvDuPme1EVsv2JKodsJo4kdUAJRTzhmqnB8VO2FfUOtd8r0b8 6JrekJvI24POkksFb9MkHlD+7vc8bAXERa6/WQj+PV++X9mRQtDXDZAc1pfhoaykEGaG 824r7/hUXqgHD8cGXG5grOoIEa3ll4aZJO6IFrzZeU0F3a3mkGuLOxDa6nCP3gtkNKeP cUlFdY/GWNdK/Q2dgRIBGHaJuXg788HcfjeX1R2c0USJosAJt9N2Al/3wn4OUIWIlPn1 Yenb2pR1QGZEJIYgFjPPhrrQ+J7XKQ8OWqRVva2p/llo5QAIg1vP7tP/v3c2df3L+/DV LCow== X-Gm-Message-State: ACrzQf1XQCPHSb/aVDTFc9xo/oYU/7MwtV37cz8gREVTODW06OwlgTaH B1bSfGvZPSfClxOafI+m/DZkova7K5qv4g== X-Received: by 2002:a2e:a7cc:0:b0:26f:cb7a:f375 with SMTP id x12-20020a2ea7cc000000b0026fcb7af375mr2869772ljp.392.1665942712788; Sun, 16 Oct 2022 10:51:52 -0700 (PDT) Received: from ?IPV6:2a02:a31a:a240:1700:64bb:87df:aad7:a9f0? ([2a02:a31a:a240:1700:64bb:87df:aad7:a9f0]) by smtp.googlemail.com with ESMTPSA id i4-20020a2ea364000000b0026dfedff58csm1205644ljn.99.2022.10.16.10.51.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Oct 2022 10:51:52 -0700 (PDT) From: Mateusz Kwiatkowski X-Google-Original-From: Mateusz Kwiatkowski Message-ID: Date: Sun, 16 Oct 2022 19:51:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Reply-To: kfyatek+publicgit@gmail.com Subject: Re: [PATCH v5 13/22] drm/modes: Introduce the tv_mode property as a command-line option Content-Language: pl To: Maxime Ripard , Karol Herbst , Jani Nikula , Tvrtko Ursulin , Daniel Vetter , Maarten Lankhorst , David Airlie , Joonas Lahtinen , Lyude Paul , Maxime Ripard , Emma Anholt , Chen-Yu Tsai , Samuel Holland , Ben Skeggs , Thomas Zimmermann , Rodrigo Vivi , Jernej Skrabec , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Cc: Dom Cobley , linux-sunxi@lists.linux.dev, Dave Stevenson , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Hans de Goede , Phil Elwell References: <20220728-rpi-analog-tv-properties-v5-0-d841cc64fe4b@cerno.tech> <20220728-rpi-analog-tv-properties-v5-13-d841cc64fe4b@cerno.tech> In-Reply-To: <20220728-rpi-analog-tv-properties-v5-13-d841cc64fe4b@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLYTO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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, Noralf & everyone, I'd like to address Noralf here in particular, and refer to these discussions from the past: - https://lore.kernel.org/linux-arm-kernel/2f607c7d-6da1-c8df-1c02-8dd344a92343@gmail.com/ - https://lore.kernel.org/linux-arm-kernel/9e76a508-f469-a54d-ecd7-b5868ca99af4@tronnes.org/ > @@ -2230,20 +2256,22 @@ struct drm_named_mode { > unsigned int xres; > unsigned int yres; > unsigned int flags; > + unsigned int tv_mode; > }; I saw that you (Noralf) opposed my suggestion about the DRM_MODE_TV_MODE_NONE enum value in enum drm drm_connector_tv_mode. I get your argumentation, and I'm not gonna argue, but I still don't like the fact that struct drm_named_mode now includes a field that is only relevant for analog TV modes, has no "none" value, and yet the type is supposed to be generic enough to be usable for other types of outputs as well. It's true that it can just be ignored (as Maxime mentioned in his response to my e-mail linked above), and now the value of 0 corresponds to DRM_MODE_TV_MODE_NTSC, which is a rather sane default, but it still feels messy to me. I'm not gonna force my opinion here, but I wanted to bring your attention to this issue, maybe you have some other solution in mind for this problem. Or if you don't see that as a problem at all, that's fine, too. Best regards, Mateusz Kwiatkowski