Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4020627rwd; Mon, 29 May 2023 22:19:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5E65bWC2LZ/OvCLV2XRi/kuOSjz18PSp16Lf6kvoAMP6IQE6I55SNjIIftZGOMivvsyH6p X-Received: by 2002:a17:90b:11c4:b0:255:9453:3780 with SMTP id gv4-20020a17090b11c400b0025594533780mr1301656pjb.32.1685423945979; Mon, 29 May 2023 22:19:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685423945; cv=pass; d=google.com; s=arc-20160816; b=LdUX+afN5IkT5sw66SGWW+SxhDWv2S03p9Irwxrkcm7X8pyu71XOMx/lfllIKD+0Z4 DkpO+PoZ2lvd48aD/VhscUxu1xmv1SHTGcvjgv8YEvjmc8GA21i+6foJj6TzvTSzwxJb vezKkCSNxlVOLPhOtl8tp8mL8gyRSUOK/UsOU0yIP3XlAdDoFvfWb9jsV4qXzbfpWSLt qNK5mPidT9LHg79bHI4Y1qvCxYC/NJcu/tnoHga4B+KBpQ5eeTy/qWtXU0vgIvBvX1K0 J2lCoO1WpSHGYF1WyFsmsx7c8C4exdcUZw330OLw2zEJQAlNXMmhfOd7IS4lMRW7wlwm eI7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=uNmD0Xv70JaEayy56+RdfAQyK0HPDkKOKowbsAERT+s=; b=KFuGgP+n7T0D3pb55VCaE+SKqsVmIYs7YLTt89jq/eCoTXwHdZ9RiapOZZlFSWmQYC M3pAYskYqebZDpLYkaosYn9UZPsxMUOupMF5RIG8U8xuZXZMhDvBmbfShcyNFpSUoLIg 40+5vZK3Yakc6eCEpu2xvdkPxShxoykdb96l6SIOP2whjQfGNAMIgV5C5C+IcBxY9hqX 5eoCedkh5TUFI9vAhsSDfJThjjkSCpvNjFx3mpL3foiL483UPVRRUOGt2R3r0YC2mlaR cdloN2VYmVIcfM45xIv/ANkPWIpj2nwU/BPQPKAXhi12YqOSr6co662s7ZSChJa9NJHu cwAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail2 header.b=Hm79fKii; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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=icenowy.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y30-20020a63b51e000000b0053f47561f35si4774111pge.335.2023.05.29.22.18.54; Mon, 29 May 2023 22:19:05 -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=@icenowy.me header.s=zmail2 header.b=Hm79fKii; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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=icenowy.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbjE3FEr (ORCPT + 99 others); Tue, 30 May 2023 01:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjE3FEp (ORCPT ); Tue, 30 May 2023 01:04:45 -0400 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DA73E3; Mon, 29 May 2023 22:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685423027; cv=none; d=zohomail.com; s=zohoarc; b=BHQkkWTAEr80M8lLmn638j1SsCDJ8tWONl9EP+zlrhSaXusGQavWAA1HAvLz6rzlydFDJliwPVSogf9K49Jrt2rPepOW6dDVs7itaVa2uYbiqUFxeP9xC18+VIVicy9OP9dn3EvbY8xYW6KAkkNrl6rI+EnrsmwX3AMHqSDV3T0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685423027; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=uNmD0Xv70JaEayy56+RdfAQyK0HPDkKOKowbsAERT+s=; b=imaaRTO7sMYIVbRDcAQSkEkNmVSjgAwBwW9AAp+RvAiKbh3IZnNPy49saesVsfGaBgITwEyA0qq0I8z/PYZmrIYX2YklCHER9T78EHRNlT09sOm0rLlRjMr8p5/YkZcWUs+/GQ995a3u7X3TYmlz73HeokW8XDMdf9H7VvQKX80= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1685423027; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=uNmD0Xv70JaEayy56+RdfAQyK0HPDkKOKowbsAERT+s=; b=Hm79fKiieyxgpF7XgjhzkGDXE4Ekr2K5Nm10fJNvEv+aX1AeSpAk6kSMJrKF6vHv e5mq6QAUhwpU8dt6ZqybNhGaYM5r5GCe6SAK73p6XdEgX44Vgcs+1mCnEir2HzAaTka bdrNvAdKRMTZTcVaOLFmS1mKxnTpKItEmikmoFaQ1b2qSzhi7gMLHtT7ZvaKDkI9nUs KOOpQiF1vmxg7/XAyFFcsBLG12z5EZjaUGfTJW2kWyWJfGtRBtwgPM+E8KR8p0oYN9e nikXRztFB46nzbcZEO0i5LRBKtMdfndvFOCAfLAKbbELOC5mvpXbSdXy+58qvpxysUv ohwrrYe7yg== Received: from edelgard.fodlan.icenowy.me (120.85.97.71 [120.85.97.71]) by mx.zohomail.com with SMTPS id 168542302470190.09283881679414; Mon, 29 May 2023 22:03:44 -0700 (PDT) Message-ID: Subject: Re: [PATCH] arm64: dts: mediatek: mt8173-elm: remove panel model number in DT From: Icenowy Zheng To: Matthias Brugger , AngeloGioacchino Del Regno , Doug Anderson , Pin-yen Lin Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org Date: Tue, 30 May 2023 13:03:39 +0800 In-Reply-To: <3069dcf7-28e0-e7f6-11d5-9bc286d7d6e3@gmail.com> References: <20230526100801.16310-1-uwu@icenowy.me> <6996788b112f4795d2930a6664b3152cd9a380a8.camel@icenowy.me> <3069dcf7-28e0-e7f6-11d5-9bc286d7d6e3@gmail.com> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 =E5=9C=A8 2023-05-29=E6=98=9F=E6=9C=9F=E4=B8=80=E7=9A=84 18:28 +0200=EF=BC= =8CMatthias Brugger=E5=86=99=E9=81=93=EF=BC=9A >=20 >=20 > On 29/05/2023 10:45, Icenowy Zheng wrote: > > =E5=9C=A8 2023-05-29=E6=98=9F=E6=9C=9F=E4=B8=80=E7=9A=84 10:02 +0200=EF= =BC=8CAngeloGioacchino Del Regno=E5=86=99=E9=81=93=EF=BC=9A > > > Il 26/05/23 16:24, Doug Anderson ha scritto: > > > > Hi, > > > >=20 > > > > On Fri, May 26, 2023 at 3:09=E2=80=AFAM Icenowy Zheng > > > > wrote: > > > > >=20 > > > > > Currently a specific panel number is used in the Elm DTSI, > > > > > which > > > > > is > > > > > corresponded to a 12" panel. However, according to the > > > > > official > > > > > Chrome > > > > > OS devices document, Elm refers to Acer Chromebook R13, > > > > > which, as > > > > > the > > > > > name specifies, uses a 13.3" panel, which comes with EDID > > > > > information. > > > > >=20 > > > > > As the kernel currently prioritizes the hardcoded timing > > > > > parameters > > > > > matched with the panel number compatible, a wrong timing will > > > > > be > > > > > applied > > > > > to the 13.3" panel on Acer Chromebook R13, which leads to > > > > > blank > > > > > display. > > > > >=20 > > > > > Because the Elm DTSI is shared with Hana board, and Hana > > > > > corresponds to > > > > > multiple devices from 11" to 14", a certain panel model > > > > > number > > > > > shouldn't > > > > > be present, and driving the panel according to its EDID > > > > > information is > > > > > necessary. > > > > >=20 > > > > > Signed-off-by: Icenowy Zheng > > > > > --- > > > > > =C2=A0=C2=A0 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 2 +- > > > > > =C2=A0=C2=A0 1 file changed, 1 insertion(+), 1 deletion(-) > > > >=20 > > > > We went through a bunch of back-and-forth here but in the end > > > > in > > > > the > > > > ChromeOS tree we have "edp-panel" as the "compatible" here in > > > > the > > > > ChromeOS 5.15 tree and this makes sense. > > > >=20 > > > > Reviewed-by: Douglas Anderson > > > >=20 > > > > ...in theory one would wish for a "Fixes" tag, but I think in > > > > previous > > > > discussions it was decided that it was too complicated. > > > > Hardcoding > > > > the > > > > other compatible string has always been technically wrong, but > > > > I > > > > guess > > > > it worked at some point in time. The more correct way (as > > > > you're > > > > doing > > > > here) needs the DP AUX bus support and the generic eDP panels, > > > > both > > > > of > > > > which are significantly newer than the elm dts. So I guess > > > > leaving > > > > no > > > > "Fixes" tag is OK, or perhaps you could do the somewhat weak: > > > >=20 > > > > Fixes: c2d94f72140a ("arm64: dts: mediatek: mt8173-elm: Move > > > > display > > > > to ps8640 auxiliary bus") > > >=20 > > > I remember I didn't change the compatible to panel-edp because it > > > didn't > > > work at that time, but it does now... I'm not sure what actually > > > fixed that > > > and if the commit(s) was/were backported to that suggested point, > > > so > > > I > > > would leave the Fixes tag out, as that may break older kernel. > >=20 > > Well at least I developed this patch on v6.3. > >=20 > > (In fact the same kernel config do not boot to system at all on > > v6.0/v6.1 when I do make olddefconfig then build) > >=20 >=20 > I applied the patch without the fixes tag. Lets stay on the secure > side to not=20 > break older kernels. Well I think this patch is at least meaningful to get backported to v6.3. Should we cc stable@vger.kernel.org ? >=20 > Regards, > Matthias >=20 > > >=20 > > > Anyway, for this commit: > > >=20 > > > Reviewed-by: AngeloGioacchino Del Regno > > > > >=20