Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2636213rdh; Mon, 30 Oct 2023 03:20:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDZFrNuhYdXgAfuSBYyp5NzAeWX+ZKy2rWRqtcstp8h/Fom9oDg9BV38Vunqbk1m96iIfS X-Received: by 2002:a05:6358:704:b0:168:dea8:8896 with SMTP id e4-20020a056358070400b00168dea88896mr10734567rwj.3.1698661256687; Mon, 30 Oct 2023 03:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698661256; cv=none; d=google.com; s=arc-20160816; b=ExRgPkENhw4QisQDVC3hcTUoBhNpm+cExKnGMQvWANUzDBPIicIPHMiCzFPktuL0e3 1b3DNkR7Trv9CU7OuEU1/IHQAqUBOVTl8ntRyzpCSxSX5u/heKVNTlBIlovTTLIPrSOl n32OkXzU66rn3Jz/dChS22SgUFQ/WrQ/rT8Izhw7+GgF1oZVRzKspkvMfmujAhS1qIu4 7Sb4Rn+fOEa8muLHUljQvo67gO196blY+PGXpYTiY5QIGqzbJ7ciiX3UbQik3u7lX/qa 2N+sNoj+dRhan1EKWwRHwgJ0gqOH8rQmlDRhQrebgu9i4JUL4/KDVDNDZYlEMuZz7Cut sZNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/PZ0DPuK2+dRsvqqflmCZcgi0jdZthU0+owMGrtV4cg=; fh=nQUpfzeeKqKfX7imrDUA+SGz1xA9qK1au83hzl5+u8E=; b=sYpEzNOaqsbeaWeLh8ienoZKb8iTqMEwestmwaxocTBpoV6GU5CfRMXQBtqBZ0DFKe YUNc8nhHRVGPUlM62EP/GQKU+sjqrZpVjqYlUci/r2kjwnXTXTymrbOZzTvnabUi1dTA KAx79WgHOWxHeAMgU6viZD8BhG6+zYO4RT5TlqDMDIMLb6I4U+mFyIV0U00G/Yg1uLz4 QxlhTGzj5sX6OyOkD/o9K6xiCUyPK4an7EYdy5E8AKH2qQ+av8QOwQOYMP7isIErsKFQ qHFxdxw6FN06z1uhdhr0GVl3kTCkmPA7esr4yQy1gANkzVPWyNzkPHxX3uz/WGUFECfj nvvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dI795qS1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h18-20020a63f912000000b005af4cc9e22fsi4674845pgi.840.2023.10.30.03.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 03:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dI795qS1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 770EB80774A9; Mon, 30 Oct 2023 03:20:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232994AbjJ3KUA (ORCPT + 99 others); Mon, 30 Oct 2023 06:20:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233029AbjJ3KTf (ORCPT ); Mon, 30 Oct 2023 06:19:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DDF544AE for ; Mon, 30 Oct 2023 03:14:02 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3313CC433BA; Mon, 30 Oct 2023 10:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698660841; bh=/PZ0DPuK2+dRsvqqflmCZcgi0jdZthU0+owMGrtV4cg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dI795qS1D0EIxs3JKE8SCw58aJkHo97jOjXG+D2oG4MkkuaKjYhERfaJIeD8aahxp tVY7IYdfe2q7DSQRYpGtTEC/vGS10Wy+3C+GGkijUEgQvnptLd1I9xdVp4A2mkmCXP VpV3d3s1iFlzXfFO5pT9zrx13nAb2b4DVqR85DhcOunG10BcoVO9SCnlTl1q5hJTpF sGxvotAhIdsqKTzcC0j2BMcToRrQ8XW0NKic20oewLoAQWxheoKHAd3vS5CmIGPbVY M9cdgXJvWB7AJVTa0G7B3t32doouJMR7bm0rUT/FaxipDKDqi4ilDnzroKp1ZlH93Z X5ilr+kp7l+rg== Date: Mon, 30 Oct 2023 11:13:58 +0100 From: Maxime Ripard To: Sui Jingfeng Cc: Dmitry Baryshkov , Thomas Zimmermann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 2/8] drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter Message-ID: References: <20231029194607.379459-1-suijingfeng@loongson.cn> <20231029194607.379459-3-suijingfeng@loongson.cn> <3ccb9600-6990-4ec7-81de-0d7b4e1294eb@loongson.cn> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4esgxz7yzjhi7nzs" Content-Disposition: inline In-Reply-To: <3ccb9600-6990-4ec7-81de-0d7b4e1294eb@loongson.cn> X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 03:20:49 -0700 (PDT) --4esgxz7yzjhi7nzs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Oct 30, 2023 at 05:42:28PM +0800, Sui Jingfeng wrote: > On 2023/10/30 06:53, Dmitry Baryshkov wrote: > > On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wr= ote: > > > The IT66121 is a DVO to HDMI converter, LS3A5000+LS7A1000 ML5A_MB use= this > > > chip to support HDMI output. Thus add a drm bridge based driver for i= t. > > > This patch is developed with drivers/gpu/drm/bridge/ite-it66121.c as = base. > > Please use the original bridge driver instead of adding a new one. FTR I agree with Dmitry here, duplicating drivers because it's easier is a show-stopper > I'm agree with the spirit of code sharing, but this is nearly > impossible for non-DT system. >=20 > Because the original bridge driver(say it66121.ko) is fully dependent > on the DT. UEFI+ACPI based system can not use with it. > > Our I2C adapter is created by the drm/loongson.ko on the runtime. > The potential problem is that *cyclic dependency* ! >=20 > I2C adapter driver is depend on drm/loongson > drm/loongson depend on drm bridge driver (say it66121.ko) > drm bridge driver (say it66121.ko) depend on I2C adapter to setup. > > This plus the defer probe mechanism is totally a trap, > incurring troubles and don't work. I'm sure all those issues can be fixed :) Maxime --4esgxz7yzjhi7nzs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZT+B5gAKCRDj7w1vZxhR xUu+AQDibs4qYnlNpi+9fWtEDzq0jcK1A42LnQIh+N0JBcu0FwD+PtS1h/A0YLqC lI4n/tM1VS1hmoORSLbIFj6d0loRaw4= =n3AP -----END PGP SIGNATURE----- --4esgxz7yzjhi7nzs--