Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp86682lqk; Sat, 9 Mar 2024 01:33:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW7UT/oftY6/Q/gEedyYQKys181Iyq33S3o3pXGVNZsx6DJGRXi4/iup1B2vq6UK8+eNe6U9GVx5C1HtfUP0wOlXWO3jePDzVCouIcg3Q== X-Google-Smtp-Source: AGHT+IHDztZcRLSVmDlQuD0FCjXPKdSY9gEUGtjwP31RCQfDNfGcFURBhm4/qfaa8Oiukk2pPnkJ X-Received: by 2002:a05:6870:c095:b0:220:b5e0:9e7a with SMTP id c21-20020a056870c09500b00220b5e09e7amr1881704oad.9.1709976822148; Sat, 09 Mar 2024 01:33:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709976822; cv=pass; d=google.com; s=arc-20160816; b=UHLIbofbAaMpbULgJT5oz0ePmclK+HgrrO3g6HHbgzdqY0RuSsBaRfA3+YvsaGcAVu 81HVRpbCVBeIn4xLBBtsOxxWX/UAXXbr54dRD0v/7laFRiU9MmxtpX440WwOZc+zS9Nz /3g/WGfqXysckM3Tx21H2SVP+FuSg/2BjAJ0/l881o6e36p3a8mrRlRK9y+ddMZ2DWcS xWvE6Xw2MotHEviRieqvz58jCk0a/QhVY15StFV0SkU8YRo6i3dB/00KXzSw7i2WxOHD w442gHaCkyHo6o4iBmhzIrH9n5V4o88tmfkK3O/Me19BQiyfXODBgs4luSpfA9jyrT5E tnQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=ku3/mf8syFhzDXGsMD87IO9efzaJJWCG+R1Xp/7u4qU=; fh=c1BgDXGWX5S7/O8494Ewnd/qTbPVyGVw4AXTIM36+r8=; b=sdMMBFjvN1Y8Mn+TcTUVcfdcm1gIM3kR5SjWhr4xbZ7i1A7NlLw+zzn1jEfX2P40v3 MoOMfpTRWEaCm8YpZ4lASdj3O27r2uqFmacqlahzfI8wuVmYIF3sPMhWZNi39WIr85Hm RFzHBkynvC+CQkg/UUm2AOOuxK0Ws2HAmT7vEj688CWPiENNGF8shEvnx4hWMj6FYoZk aMgKN7o3I2GglEKOWAhwD7c6u07D2Z4Pepe3YZOLWzsH0oWl1msKsfDYSdevcOPmIV+U BgsyxZRlb/VHcCCthZ132PI2TdAH+bKXKqcbIATSL72Y/3F+BOJZEzSqt4tX9BFodL7i krdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uSUNaqL3; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-97830-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bd43-20020a056a0027ab00b006e63f027285si808373pfb.19.2024.03.09.01.33.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 01:33:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97830-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uSUNaqL3; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-97830-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5FCFDB210CC for ; Sat, 9 Mar 2024 09:33:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47716381AF; Sat, 9 Mar 2024 09:33:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uSUNaqL3" Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7455337141 for ; Sat, 9 Mar 2024 09:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709976811; cv=none; b=ZWlqJd7tKZy7qWir82keHeK/+KgAA7ih459rZ1N41TEwzF31zJFboTb+eIs2604cCiE8IFdLhae3YbFqlrZutU05p1/LKgsJhzdvY4YUXs8EdLqd48YwOUdBA6pqFbKRq0j6kd2rwz3rnchGPSwhIRT6bHp0SMEuFE+VUc4SKsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709976811; c=relaxed/simple; bh=ku3/mf8syFhzDXGsMD87IO9efzaJJWCG+R1Xp/7u4qU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Bew0DI44QmNLPec3D8x/UwCHyfD93v3Pp8oSsyxj9+qKex62lKtrm5fAbQelBQluW4S1zhiGU6bydClUsRO98s7ZOLM5actil143V6u0p/znQemKwRRRZ7XlrWaGmRMqpqgy16S8NOTwjPvv2nRgfkELK9MWKHh781XoLeLbu3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=uSUNaqL3; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <7535b3ba-6bbb-411c-82a4-cd4ac45de1a6@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1709976806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ku3/mf8syFhzDXGsMD87IO9efzaJJWCG+R1Xp/7u4qU=; b=uSUNaqL3Dlk9kk3cXy6TMM/nULPd1TJgzG+cX6gxCONOyfWCOJHRxukYxDymxZFe3aagoX PQ7pWtD1aYYqxzefhTs9hr78HhHSfHZWX7VNTp+EgEGqfYgpMpicIpZqSkOUdAhA75xI1B V0g5+hntGUtW2BbeGz+r4LdOIrCMLRs= Date: Sat, 9 Mar 2024 17:33:01 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2 1/4] drm/bridge: Add fwnode based helpers to get the next bridge To: Dmitry Baryshkov 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 References: <20240307172334.1753343-1-sui.jingfeng@linux.dev> <20240307172334.1753343-2-sui.jingfeng@linux.dev> <45f59f31-1f03-4a96-adb6-25c7cdd5e8a1@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sui Jingfeng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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 API >>> 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 fwnode 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 DT dependent. >> So, there are a lot things to do. > Actually, lontium-lt9611uxc.c does both of that ???? It supports > 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 bridge can't suit you need? Coding this way just add boilerplate into drm bridge subsystem, right? The code path of "creating a connector" plus the code path of "not creating a connector" forms a 'side-by-side' implementation imo. Besides, I have repeated many times: the DT already speak everything. Device drivers can completely know if there is a display connector OF device created and how many display bridges in the whole chain. If there are connector device node in the DT, then it should has a device driver bound to it(instead of create it manually) for a perfect implementation. As you told me we should not *over play* the device-driver model, right?