Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp155151lqk; Sat, 9 Mar 2024 04:51:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVJKkwlZXOFbsHuwvHx3x3jH+0mBwxaT4PjV1IUwnqP3txlQ3EBhJDjmlacxnP73C51rydKrzDCH6XJ+Bs2uFYyGB2vb52LkAT5wvWyVw== X-Google-Smtp-Source: AGHT+IGLhmAcu1QBwiTx/HAMsuAOvuhu2ph0JwJzYjpxColG5lYUcmn0iRZ4ETRpq7e7LWqbqHkG X-Received: by 2002:a17:907:cbc6:b0:a45:6b66:92ab with SMTP id vk6-20020a170907cbc600b00a456b6692abmr894012ejc.51.1709988669252; Sat, 09 Mar 2024 04:51:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709988669; cv=pass; d=google.com; s=arc-20160816; b=R+WBfeulD6Xi4/wBjOuK8CISDFvFqbknRsLtcUWxtb2HJo5euAj3zpisYIcllNgdi6 e5Bft23Bw+Ybo2+R4QJcqDpimLO9LCE14M2OCWBRr6eDWKCF1ZQOb9rh4rVjWu7/GZPs EYkp6/VH4i9mayO7wqDMdTTKrcl5AAqRLx8hr0ikhsvlAVgrsANkz8zv5DjNGbqfS504 Iph7gQmPSFSup8ET7PNjO2F5UYpWVSQu4I0DPb7qoF66GpStBg65YGLuJ6snR+IZhn+X 6b12TNh2s6WxTl9xejV+bjOfSca/yktHq5vFNgUXrizqZ5bDaBAVq6iyZlfjrbyxLXmZ dAkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=FpdDui4dtfTDgXa3V4vSwAx/FAfCbg9OZ3d9WLKbM+w=; fh=+UlbeDqFzEw/5SjITXD3d7b01OqH9/lLgorxcZTSvfE=; b=1LLq2Yjfw++5iOof878cF6AOVhdY9FIIxjW1MH5MLJB52gpAopde5HwLRt5DdFiFef ics967yW9hBn5tec0QKJmsnsAsdpJEDtbkXZn3pRQ/acazsYxaTRKD/NOdA8ZfKT5j4H 4oHdheR/I1yEQwsTKnnrwf5tZ09/WYZGZKb+/2r0SmnMkSt4e2Az7UUG6hRS/tedP7hy ftCXqdw7Cz01xjW3+78eiZ24lue3JeLnk97/GUwnfaLK4HvQcpf3ho9PuDYOjnMXai89 nTGb0YCmxGuHPdm2+LZbwswO5EpDtA0q+NgoNLvB4vZudVNgfsUXb1iRPeMUoKyQgMiS mJfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I2F8pFDs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-97890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n5-20020a170906724500b00a448f28f183si722635ejk.849.2024.03.09.04.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 04:51:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I2F8pFDs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-97890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CC3191F21273 for ; Sat, 9 Mar 2024 12:51:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61C9D3BBCA; Sat, 9 Mar 2024 12:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="I2F8pFDs" Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D03E21BDF4 for ; Sat, 9 Mar 2024 12:50:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709988661; cv=none; b=rTu+sgFA/1Ce2HXeqzYGPbCpZ1BXThqNghJzW4WMbxPTJlCP/JCjdkXbw3EbgMWf7O/GZfoHZfbgFVBM3oEpZYh5mk2YYxOC8d/C/I4MddOU00u2DSB06BCpo/GTl7riY7+atLUfTBlARk/51qdHUxlCnKRpl9v/n7LGq7BVyyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709988661; c=relaxed/simple; bh=4V9xgRJtIxeDbMzKIrPVPo05iJQHnN0c6lIUZl7V4V8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VkMoqbV5JaUcvYlFnZelmZaBFeKnNHSp7UohUYcFlVoHVP5WXtLY3/1Au3er2zZXOUK0N2uvRRJGRtamzjNtJxfQnOIhwksp1A6ThucSHtBSr9COu2cHhAed4ut0CchbdFt3G3ct1ZUUfDscEHg2psfD9VEnp1IB4Wam0d/ZBXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=I2F8pFDs; arc=none smtp.client-ip=209.85.219.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-dcd7c526cc0so2849361276.1 for ; Sat, 09 Mar 2024 04:50:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709988659; x=1710593459; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FpdDui4dtfTDgXa3V4vSwAx/FAfCbg9OZ3d9WLKbM+w=; b=I2F8pFDsEDfk1zbRegAgqkNgTntvbQTwxtsS8Fipss3PGCCHNBs4j29fRw3eTnR+YX DHFI9bnB+TT1EzbH0nDqmiiKiQGExEzSBP+K55nAHW2zHpUexjBEVxeQVF9AdcGXUFVP H1P7Ld68tq/336gNPr9KstOjpPOuwFhhEqUE2DW6wYRrYo3pJMI3uy7KEfa6jcHW5GgF v2tdmiiyRJ6sMVeuPzg2RsqZi8+g8se7Xc2/W93uVty62ki+PdZ6ftliA63d0s5miXFJ CwgHYc39YxPa41qmUs0UOjjL03ZcDSddBeK+jCuisrAkL+7qYSsbmRcTWSyHYT2F+lFm klRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709988659; x=1710593459; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FpdDui4dtfTDgXa3V4vSwAx/FAfCbg9OZ3d9WLKbM+w=; b=DcEqMXav2j8b5B8160DvPxGDDISmb81iY1OFsl4Y1gXWS5vlWR5Ur1JiAh1+FVLSYB DmTkjfKikwSY/LI6F6G0UleSQLdrAzseQOZl8HBj+XAB8g9Tlj7oLvgOBcUOJjEURBiY vGnXKXibl6+MwRHsDmL/TkUadepcjUxA7J03Bx6F1bVhqpfzuI6qXD/r+ClkNmMXleeN CLYbOMe/bh3B0Ep42nwGnGaZpJTyrwFm3Dt2IurEJRR1D7VzOq7yqwF0Cbswi3TLNTmM VEFxsbyQSAMlI8yIq07QABt8lvEINrcT6x54SHTmsV1AAhMmRk5ENRVT7absCYLgGBBK Fg8Q== X-Forwarded-Encrypted: i=1; AJvYcCW+Oi9MSG9T/9L1Rygws9Ha0f/0pvMV8bgFSs2fh/m6nfwmfwvfr2fnhtrGCrmcxlkHwCklWZii22zg0RRQFRQ7YouJy9nWaHPYQoM/ X-Gm-Message-State: AOJu0Yyg+i363QRvEj3mCGNWt+h8OD+9rwqbX1TX832pZo2afmGqKhbI lPmQbS3aXoglRSU3u6h0nZfRfTLgnXbPaGt/efMZ3k5uvdvd4P/IjT1KnmjWZCY9tIGyDUgLL54 JqhGFITZOc2c0wI8GiHmK9YASIONBjSf+9RMC/A== X-Received: by 2002:a25:ac93:0:b0:dc7:8c3a:4e42 with SMTP id x19-20020a25ac93000000b00dc78c3a4e42mr1076338ybi.30.1709988658836; Sat, 09 Mar 2024 04:50:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240307172334.1753343-1-sui.jingfeng@linux.dev> <20240307172334.1753343-2-sui.jingfeng@linux.dev> <45f59f31-1f03-4a96-adb6-25c7cdd5e8a1@linux.dev> <7535b3ba-6bbb-411c-82a4-cd4ac45de1a6@linux.dev> In-Reply-To: From: Dmitry Baryshkov Date: Sat, 9 Mar 2024 14:50:47 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] drm/bridge: Add fwnode based helpers to get the next bridge To: Sui Jingfeng Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Phong LE , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 9 Mar 2024 at 13:25, Sui Jingfeng wrote: > > Hi, > > > On 2024/3/9 18:39, Dmitry Baryshkov wrote: > > On Sat, 9 Mar 2024 at 11:33, Sui Jingfeng wrot= e: > >> Hi, > >> > >> > >> On 2024/3/8 04:40, Dmitry Baryshkov wrote: > >>>>> But really, there is nothing so hard about it: > >>>>> - Change of_node to fw_node, apply an automatic patch changing this= in > >>>>> bridge drivers. > >>>>> - Make drm_of_bridge functions convert passed of_node and comp > >>>>> > >>>>> After this we can start cleaning up bridge drivers to use fw_node A= PI > >>>>> natively as you did in your patches 2-4. > >>>> Yes, it's not so hard. But I'm a little busy due to other downstream= developing > >>>> tasks. Sorry, very sorry! > >>>> > >>>> During the talk with you, I observed that you are very good at fwnod= e domain. > >>>> Are you willing to help the community to do something? For example, = currently > >>>> the modern drm bridge framework is corrupted by legacy implement, is= it possible > >>>> for us to migrate them to modern? Instead of rotting there? such as = the lontium-lt9611uxc.c > >>>> which create a drm connector manually, not modernized yet and it's D= T dependent. > >>>> So, there are a lot things to do. > >>> Actually, lontium-lt9611uxc.c does both of that =F0=9F=98=89 It suppo= rts > >>> creating a connector and it as well supports attaching to a chain > >>> without creating a connector. Pretty nice, isn't it? > >> > >> But why the drm_bridge_connector helpers and/or the drm_connector brid= ge can't suit you need? > >> Coding this way just add boilerplate into drm bridge subsystem, right? > > Because there are platforms, like iMX LCDIF which can use the > > lt9611uxc bridge, but do not make use of the drm_bridge_connector yet. > > > > Well, I have just grepped across the drm-tip kernel branch, but I don't f= ind > iMX LCDIF you mentioned. See the search results pasted at bellow. Please take a look at the commit 8ddce13ae696 ("drm/bridge: lt9611: Do not generate HFP/HBP/HSA and EOT packet"). As you can see from the description, Marek has been using this bridge with th iMX8MM / iMX8MP boards. As soon as mxsfb has been updated to pass DRM_BRIDGE_ATTACH_NO_CONNECTOR, we can drop corresponding code from LT9611UXC driver. > $ find . -name "*.dts" -type f | xargs grep "lontium,lt9611uxc" > ./arm64/boot/dts/qcom/sm8450-hdk.dts: compatible =3D "lontium,l= t9611uxc"; > ./arm64/boot/dts/qcom/qrb5165-rb5.dts: compatible =3D "lontium,l= t9611uxc"; > ./arm64/boot/dts/qcom/qrb2210-rb1.dts: compatible =3D "lontium,l= t9611uxc"; > ./arm64/boot/dts/qcom/qrb4210-rb2.dts: compatible =3D "lontium,l= t9611uxc"; > ./arm64/boot/dts/qcom/sm8350-hdk.dts: compatible =3D "lontium,l= t9611uxc"; > > > So I can't see the drm driver that you refer to, can you pointed it out f= or study > purpose? Even it's exist, however, back to that time, why don't you posti= ng a patch > to switch it to the canonical design as you mentioned and give the commun= ity a clean > design? If you have iMX8 hardware, please do it. I don't have these boards and I do not have an intention of acquiring them. > And those are just *reasons*, from the viewpoint of the *result*. > The merged patch results in a 'side-by-side' implement and boilerplate ad= ded > into drm bridges subsystem, the results doesn't change no matter what the > reason is, right? --=20 With best wishes Dmitry