Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp98288lqc; Thu, 7 Mar 2024 11:21:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsessO7ApoN7tFpK8zHP6LgbeWZTg1dS5cqZ9+0DKGJM9Q4KEbJhR+MmkDbNspp4uDQ81Ea+M90DKEfZQ5tOrsJUpbyr2lpDGlVtaRQw== X-Google-Smtp-Source: AGHT+IGHf7+xce8/BvCGuRqJ2rfcS3Gb131jmXPUhechnVwJLmrLkU0p7+ixRPdjvhlzXA4PP0zq X-Received: by 2002:a0c:e84f:0:b0:690:8d82:5630 with SMTP id l15-20020a0ce84f000000b006908d825630mr3290490qvo.14.1709839271149; Thu, 07 Mar 2024 11:21:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709839271; cv=pass; d=google.com; s=arc-20160816; b=cC1OV4W7Hv5HbJgA+Ys7rdfRyJWMne/x+t6gB1CjPu8WqYkOeYju44+e0U6xmH/CEI 9zmuRAqtR8c2/7tAfKvPd1Oj2DZhfMU+i8y3tUtBvHCbRCmcdwmf9XYtBMpGcDywDP+J qdVbl0L88v481iIai6JkJ7gPBbXmIgWCFAHYqmZiwiDCibW08ksTG+F9emt2r+pkZY3x X2ggSs2HC3TwyscxICtH473O9n9mw6MkfJT8KWNXvwtl/PKBNjTJP82P7001oxmVD8hb ybOklaBDt8A4ChokkZPdvkBxEIvdxuTiRL0YTHFlzVvPy5aRka0yN9NmbvBmx0v/Yzy4 iT3g== 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=VnFnbqDeKPmVvi03N+VBYRVISwQV8TV/BYHIxfxeVJo=; fh=c1BgDXGWX5S7/O8494Ewnd/qTbPVyGVw4AXTIM36+r8=; b=olVZU+HfdlFggLY8Y5sgHQcTQiH2GpG6Lnpxpx6lu3ZKZZNRlp2AUuY8uVCZ6Qv1sd 56RGFwd2uslI4E/8TTFDL7g+7SjyTayPTPz/8yWOp+BQ74wkKrWXRGJxvNfQ8lWpCNVY He+ojMYs51ur5GsEIe9DcdOaMy75Uu2LcDdWKx8gWI7Mrv+LBoAY80LmdVhF3uTj2vit +VCVcotsoiVRJlUTdqMB7O67lTAb0KzXozyv5oAKVIc/QoE0niD17TT72sq8p0H5nl2U T7gxWCX31dpGJxOlwfIut39J1oTyBv12BRN1OuS70wr81YGcgchdFWHXDUJ0ZEp1r0OE l5HQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=fLR491Ky; 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-96092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96092-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 gg5-20020a056214252500b0068f3be89f52si17792954qvb.322.2024.03.07.11.21.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 11:21:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96092-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=fLR491Ky; 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-96092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96092-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 F16C71C20C30 for ; Thu, 7 Mar 2024 19:21:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A2251369A6; Thu, 7 Mar 2024 19:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="fLR491Ky" Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (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 E546D135A7E for ; Thu, 7 Mar 2024 19:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709839227; cv=none; b=O55z6baVMssaFeqQyf+7ZQGe/lffXSxH4sbrss8hqsvkIhoEmW9yD0mDGVI7gvvk5Y2c8b0Dpf0Csng4gcU1K8TWlIQAtfSftI1uYooTPWcCYRMCob37wTCh7xRwrPxAEwhpc2CFs4QMGw25LKh/QCjEYZqG4wJjQ0MotATmnLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709839227; c=relaxed/simple; bh=66/OiU9kekT0wVFBm33Xdi8g7UDAgmAY/pPMP3kjYO4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DMOOeUuR3UY8ZckkAQm3LzY9U692Lg2m4+R+sT2A2YST8+JVnM/aw/eTu01ETJmktGYZ41FDTdOz99e8s2IfBbOvyhsDEQpp9VHQkVTZ+yRszf9LyMX5jmFiLr5hEB4aU/oC44xw7T6H+jhUHtgV5mB0qVeObDiedrgBqRiMiaI= 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=fLR491Ky; arc=none smtp.client-ip=91.218.175.175 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: <45f59f31-1f03-4a96-adb6-25c7cdd5e8a1@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1709839221; 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=VnFnbqDeKPmVvi03N+VBYRVISwQV8TV/BYHIxfxeVJo=; b=fLR491KyRBd+vuj8QblEQG+I3EUMqpmzX4/kZPi2b4kFpWdfqOZPkLeLkSFaHXbbxDR2av hMmBeUV/mrETplF47OVMIQLbBa+PcklOjWcl0Vm8FU0TmRLCuTaogLLkIOyM8qgIrw2PB3 SUkHxI+kqGAdhh7nm8CaTKrYZ9mrVA8= Date: Fri, 8 Mar 2024 03:20:07 +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> 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: 7bit X-Migadu-Flow: FLOW_OUT Hi, On 2024/3/8 02:43, Dmitry Baryshkov wrote: >> + >> MODULE_AUTHOR("Ajay Kumar"); >> MODULE_DESCRIPTION("DRM bridge infrastructure"); >> MODULE_LICENSE("GPL and additional rights"); >> diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h >> index 3606e1a7f965..d4c95afdd662 100644 >> --- a/include/drm/drm_bridge.h >> +++ b/include/drm/drm_bridge.h >> @@ -26,6 +26,7 @@ >> #include >> #include >> #include >> +#include >> >> #include >> #include >> @@ -721,6 +722,8 @@ struct drm_bridge { >> struct list_head chain_node; >> /** @of_node: device node pointer to the bridge */ >> struct device_node *of_node; > In my opinion, if you are adding fwnode, we can drop of_node > completely. There is no need to keep both of them. But the 'struct device' have both of them contained, we should *follow the core*, right? They are two major firmware subsystems (DT and ACPT), both are great and large, right? Personally, I think the drm_bridge should embeds 'struct device', after all, drm bridge are mainly stand for display bridges device. And also to reflect what you said: "to reflect the hardware perfectly" and remove some boilerplate. I think I'm not good enough to do such a big refactor, sorry. I believe that Maxime and Laurent are the advanced programmers who is good enough to do such things, maybe you can ask them for help? Beside this, other reviews are acceptable and will be fixed at the next version, thanks a lot for review. Best Regards, Sui