Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp510377rdh; Thu, 23 Nov 2023 09:52:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwHxq7hy8YjrBBXbreXZKlctfWd8hXez82rikAQ9D9lo0yBpWK1m5L3mRFt7ujf67e5lNJ X-Received: by 2002:a17:902:dac8:b0:1cf:9eb0:fb72 with SMTP id q8-20020a170902dac800b001cf9eb0fb72mr324723plx.8.1700761975849; Thu, 23 Nov 2023 09:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700761975; cv=none; d=google.com; s=arc-20160816; b=q3QxcK/QqTqIyD44oDXdA4I/WUuDYeiGZdK/WE6BjaKVQatSOWJ9ZyENlqxPmQDEKF ETC51Cbz5vrcT3ola57ssW4tEY9KUyhcdIuSKgXOMUQ2pjhJiDkE5W6AWqmoulr1jP/1 lcZfK81YdZlGG3itNZbDnOsCeH2Asc+E6OaGrFMU+4xowswsltIjNV9zY8PcjYuupfal 7Y1/kiMPBHvSRjH9Zc3/TDB4bgAkxJJR1YmrCXq4aO7npsQxjQX9b127KNbtQfSXs34U OpP5rq2i/sVmoOZgLlP0wtvGRsV4L7fjPiJas1I3gNfK6DEggSJFVVQ5HyLkR0A7hTg+ 1ywA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=xOb7IjDCHemslGdU76yEhf/PgAy4hmseLlpzuv6m1Uk=; fh=L6MbuOTOK7FHgIF89LITj4O+NnVze0RQCyrYNOhkPmg=; b=ZadEcIcH1HC1KNL6Bw9LwzUMRr8nEHZXNqReW4IyOUAG1vfpP66knz23FTfyxKonmn ekNUvqinwDKYh/epZPNfbYr9sRKOq/PUxKSOG1d3WTfqqAMI1Sc7de+IQOu7dJ7MOPIs 8kpzO9jvFsWyJOEJyceoEnudofFR+79d+D5Rdl5IjrFtIdFGo006Na4v/S+96LQKoig5 A2WW7iRwD5mHtH2vazWkBbfZrZxxA+NxtIyTKnGmLbERdzQJofvoRLQiJYsyYFy48yqm ech2hX4f66DA8CBaH3Fn5TUIQuhA03biGt6rO5v2Wl4AylTygA+Zb+NihxqTkCa8CqSn UAPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rvDAMlYF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id jh9-20020a170903328900b001cc0c4c1c63si1499413plb.165.2023.11.23.09.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:52:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rvDAMlYF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A77DE8061389; Thu, 23 Nov 2023 09:52:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345669AbjKWRwb (ORCPT + 99 others); Thu, 23 Nov 2023 12:52:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKWRwa (ORCPT ); Thu, 23 Nov 2023 12:52:30 -0500 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [IPv6:2001:41d0:203:375::b2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B68211F for ; Thu, 23 Nov 2023 09:52:35 -0800 (PST) Message-ID: <10c4ae94-525f-4ac1-9d59-80bb4f7d362e@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1700761953; 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=xOb7IjDCHemslGdU76yEhf/PgAy4hmseLlpzuv6m1Uk=; b=rvDAMlYFJTRFccWgNKvskgLlDUt2EAgJ4/69cFY/PQwIb4RbG+p4JSMlgU56VNnRzt7Ej/ XGTJwyXbrBl07dUi7GAgFTfAovsKn7cIWeKdVhlgQVsEFKFnEjGl2fuWQSpgeGHofR1A+m PZ13xFlJRMw+z7THsKTVSDQc9Bh/pyY= Date: Fri, 24 Nov 2023 01:52:26 +0800 MIME-Version: 1.0 Subject: Re: [PATCH 8/8] drm/bridge: it66121: Allow link this driver as a lib Content-Language: en-US To: Dmitry Baryshkov Cc: Phong LE , Neil Armstrong , Maxime Ripard , Sui Jingfeng , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart , Thomas Zimmermann References: <20231114150130.497915-1-sui.jingfeng@linux.dev> <20231114150130.497915-9-sui.jingfeng@linux.dev> <79301d04-c0cb-4740-8a6d-27a889b65daf@linux.dev> <121163c9-0d56-47ad-a12e-e67390fef2b4@linux.dev> <00ba2245-0e48-4b21-bcd4-29dfb728e408@linux.dev> 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 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:52:53 -0800 (PST) Hi, On 2023/11/23 16:08, Dmitry Baryshkov wrote: >> I'm agree with the idea that drm bridges drivers involved toward to a direction >> that support more complex design, but I think we should also leave a way for the >> most frequent use case. Make it straight-forward as a canonical design. > Not having anything connector-related in the drm_bridge driver is a > canonical design. What you said is just for the more complex uses case. I can't agree, sorry. By choosing the word "canonical design", I means that the most frequently used cases in practice are the canonical design, 95+% motherboards I have seen has only one *onboard* display bridges chip. For my driver, I abstract the internal (inside of the chip) encoder as drm_encoder and abstract the external TX chip as drm_bridge, this design still works very well. Originally, I means that this is a concept of the hardware design. You are wrong even through in the software design context, the transparent simple drm bridge drivers(simple-bridge.c) also *allow* to create drm connector manually. I don't think I need to emulate more example, please read the code by youself. Canonical or not canonical is not a question to argue, if other programmers are allowed to do such kind of abstraction, I should also allowed too. Thanks.