Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp320810rdb; Tue, 23 Jan 2024 00:01:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUgPrOt2n1dL5SsXZdxocbuw0ETBU1vVOd7yomEEU0CQ7g5Nwy7m9Va07GwJgfUTOVyJzr X-Received: by 2002:a0c:aad7:0:b0:680:b72b:7d7f with SMTP id g23-20020a0caad7000000b00680b72b7d7fmr409228qvb.127.1705996909130; Tue, 23 Jan 2024 00:01:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705996909; cv=pass; d=google.com; s=arc-20160816; b=fhqBeIyeLkJl8G4R8V6O1DE03AbhlIlYZapXX3u7sxJYaGDkUCOte94s01eOwi7dwY dUFmJp8NtgrFRpeMviVVedLN6uHtuNshI0p/pXGzunfh8DV8HL8eacQr9Dilti1esw9l pmg46Rl4oQHJSZ/Oug3fB8RgnkBv1E0x/IMTOkYH+XeQ5tRhu+BNxm2bfCDk0rgRGMW3 e0yvMeERjbFVmxW9j3alEA00Psp0UjsbvXF9qGVA+la0yXwaIjVsnT9d4rnUWEPl8e/+ 4S0NxX/VTOOzcfZx0uZVD3nuzPRBOFzNdyNpWEBVFIMex3m57HsFTgu90ospJKFn1GAB fTcQ== 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:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=67l2M1HaeJ+asThnndVHn1G09ODvFjMH6pEAjXPnAkg=; fh=7CrtUiEhQ49I2ru9NR+VoMQH/xkvk2QOsweTtSsvEPU=; b=TTgdx064K8ffQRiOdGxEPr4y/BfYkZAcZ8tVe68tIjgHx4uk/FU3qhq/ZghsRWjjCy odHglmfnqmHbZ0l94W/KDWf4HWky89FnMlSp2vqJVxGfebZnvrcYPYpcSf4lTaRg1okG J+wuHI236Tu9oFtA32WuGUclQGewfz5Oc6uRCfokbYMppFGnPb6JdOBpaLpykYFLV/em U7d+TCVQLGzc4O8ttp+w+zQgZ2tglf0g61Gz5vjKZJaoXhuE5GsDkqZYVggqwi2qI0FH i/v84tgIfApF4mCxnbhJeTdSvV88uB318Vy53h/jPWIHipXCisSHijCqN0uCN/4wFMDL RKtg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=doQx0DWe; 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-34858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g30-20020a0caade000000b006846c97c980si7378147qvb.579.2024.01.23.00.01.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:01:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=doQx0DWe; 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-34858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34858-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DAE991C230D0 for ; Tue, 23 Jan 2024 08:01:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C49FB55E73; Tue, 23 Jan 2024 08:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="doQx0DWe" Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 26E1552F86 for ; Tue, 23 Jan 2024 08:01:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705996900; cv=none; b=nfnqPbi2wO7vMBTdU8fei+W+lRUEE6fTx71Ax/bG3hmMIHc4nWSZVQR1q2Gvkns8vyXsbHqed2FVxfO3HLJ/rC1FDmD6EWifDGbwVNWSBsbOuTqQtA7jyOB3c67xH06nB3YgTOUH/MKMQsykMvpOfSaW3qW7JgJfe250p4oHEMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705996900; c=relaxed/simple; bh=67l2M1HaeJ+asThnndVHn1G09ODvFjMH6pEAjXPnAkg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nNIhUKfz1Id/duRYYjvuGrla3lV9dmvxKEKx1J9GJGRlUyWZMg0mV8kemO+a3A3BTlPx0KfIewEmIQpRim5tEVt5RH4HU/5n0L4T+pFa9u5nmYXswNskoV1HFeJf/idzhyRLxVhUoRqc4now7G91Ax1cQ9iLa8QBP/p+lwxJSC8= 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=doQx0DWe; arc=none smtp.client-ip=95.215.58.171 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: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1705996896; 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=67l2M1HaeJ+asThnndVHn1G09ODvFjMH6pEAjXPnAkg=; b=doQx0DWesFQKU/CE1PDURDBvCPxCb7YfllzioaQOBRIsFdY397G2ZWkKxHSaXTuqeVM5s8 aIvjbLok1ldH19qjGp73DIBiZ3cTqysEVZAIHBlyZar5pQ+ugoepzakApSyGTadLiBuGUe WYD72Jv4zZg0Kcy93h4vdPjAtTA6Of4= Date: Tue, 23 Jan 2024 16:01:28 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/5] drm/bridge: Add drm_bridge_find_by_fwnode() helper Content-Language: en-US To: Laurent Pinchart Cc: David Airlie , Neil Armstrong , Maxime Ripard , Thomas Zimmermann , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240122163220.110788-1-sui.jingfeng@linux.dev> <20240122163220.110788-2-sui.jingfeng@linux.dev> <20240123011710.GA22880@pendragon.ideasonboard.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sui Jingfeng In-Reply-To: <20240123011710.GA22880@pendragon.ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Hi, Thanks a lot for your review :-) On 2024/1/23 09:17, Laurent Pinchart wrote: > Hi Sui, > > Thank you for the patch. > > On Tue, Jan 23, 2024 at 12:32:16AM +0800, Sui Jingfeng wrote: >> Because ACPI based systems only has the fwnode associated, the of_node >> member of struct device is NULL. To order to move things forward, we add >> drm_bridge_find_by_fwnode() to extend the support. >> >> Signed-off-by: Sui Jingfeng > Could we switch completely to fwnode, instead of maintaining the fwnode > and OF options side-by-side ? The side-by-side approach allow us to migrate smoothly, the main consideration is that the OF approach has been works very well, it is flexible and very successful in the embedded world. It seems that the fwnode API could NOT replace the OF options completely. For example, the'of_device_id' and 'of_match_table' related things are always there, there are large well-established helpers and subroutines and already formed as a standard. Some part of it may suffer from backward compatibility problems. So I want to leave some space to other programmers. Maybe there are other programmers who feel that using OF alone is enough for a specific problem(domain).