Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp669093rdb; Fri, 17 Nov 2023 09:16:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEBWwsF+dX9jjOS6ygY+d8B98a330lzsdVK+vb8sNo6fCyGRnfXJIsRI1SCsQGSbNaQwU5 X-Received: by 2002:a17:90b:3886:b0:27d:6404:bffc with SMTP id mu6-20020a17090b388600b0027d6404bffcmr107662pjb.1.1700241382822; Fri, 17 Nov 2023 09:16:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700241382; cv=none; d=google.com; s=arc-20160816; b=e16x9+KwoqPXsNAR399iATe8ItOA0whvHseY3S6IQO416kJAa6ylSAj6sqR7VxLrms y5IuKMLDbZ1JdVHW1ZYgzlpSE2CUjSoAjRxjvB9PbhqJsF6gXKoflQX0CLWFxmZRxzO6 Ps4rmFsVD+dAua+BW74wUA6GMXv88JX7VuU0jONcb4gZIWrwxSJlj6RinhOFfpDa0Fbn qiZFE2u8+5MhVz9erBXoeRQg2OiXAWeiRjk0MRyvatamn/lseNNOmPW9WQ2IQiheIMf+ ltTOaXtGulosXhm5uoUn5hVVVxxjdVbTE5zWCl0Rjr+67dLgO7Y/Mc6NdDJd99LvhP1I ZG9A== 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=HEDhNZrH8MvqjaHDgYaCvonHmsUHYS4uG+z5r2r0VRQ=; fh=L6MbuOTOK7FHgIF89LITj4O+NnVze0RQCyrYNOhkPmg=; b=gioC67jy43c8NZU+fzrihQamXDMx7nCuATGGLNzyM3yRsHrfNWzBfQlCAXXofYbBSP OO85s5MIjE9412Oyh0BMwUhuSq8Hz2MhoesM84WunjLZ3ok771C84fRlth0JIVrVX2Ek RL1QgiQmjowJAC2Vm0fIgQ9enXb8byM0qQpxVXRf/xIHm9ZTrw8yLQraY/uqEOrTlcqJ A/QRuEIw/ciPSlgeQFogix7jcKo+L0NzeWMU4M5m+tP3LU+ENFss8YAcA+UVgXVEZAmH 1w5j98xZEAyL5Sd1OfNGBt4s54feuKwJ98tJejaNOeDTggEs957Bw9y5n33QJFmrtBKZ ZcKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=g2llqfJl; 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=linux.dev Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id r18-20020a17090aa09200b0028037d7ed6csi2250334pjp.126.2023.11.17.09.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 09:16:22 -0800 (PST) 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=@linux.dev header.s=key1 header.b=g2llqfJl; 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=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7BB268087F02; Fri, 17 Nov 2023 09:15:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231757AbjKQRPL (ORCPT + 99 others); Fri, 17 Nov 2023 12:15:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbjKQRPK (ORCPT ); Fri, 17 Nov 2023 12:15:10 -0500 Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 571DED6C for ; Fri, 17 Nov 2023 09:15:04 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1700241302; 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=HEDhNZrH8MvqjaHDgYaCvonHmsUHYS4uG+z5r2r0VRQ=; b=g2llqfJlhvSeujHlwGzKY8TaH4b9KrWeMpu5RUYAC7UiFxrCSJ6vY46AAy6iJGgJxAQtLE fffFOowZVsUrDd+H8C9Na13lS75c3jrOdXlJIiqrSmvyMAMyKDuiW8Ku50bgJJX9SnjpCw 2+4oqDgUBRu/G5f+WVlvUu6BQPg4C/k= Date: Sat, 18 Nov 2023 01:14:49 +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> <1b59d647-c345-4260-b07b-22abb70ae17a@linux.dev> <7b85d057-3d66-435a-a657-dd69067b6bef@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 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]); Fri, 17 Nov 2023 09:15:27 -0800 (PST) Hi, On 2023/11/17 17:03, Dmitry Baryshkov wrote: > On Fri, 17 Nov 2023 at 06:24, Sui Jingfeng wrote: >> Hi, >> >> On 2023/11/16 23:23, Dmitry Baryshkov wrote: >>>>>> Then you will need some way (fwnode?) to >>>>>> discover the bridge chain. And at the last point you will get into the >>>>>> device data and/or properties business. >>>>>> >>>>> No, leave that chance to a more better programmer and forgive me please, >>>>> too difficult, I'm afraid of not able to solve. Thanks a lot for the >>>>> trust! >>> From my point of view: no. >> >> I respect the fact that the community prefer generic mechanisms. >> If our approach is not what the community want, can I switch back >> to my previous solution? I can reduce the duplication of our >> localized it66121 driver to a minimal, rewrite it until it meets >> the community's requirement. I know our device looks weird and >> our approach is not elegant. But at the very least, we could not >> mess the community's design up by localize. Otherwise, I don't know >> what is the better approach to solve such a problem. >> >> Can I switch back or any other ideas? > I keep on repeating: create the i2c device from your root device > driver, which parses BIOS data. > This is not my own problems, currently it66121 (but not only) display bridge driver don't works on X86 either. What we are trying to do is to provide a generic, non-platform dependent solution. It is not only relevant to my driver. In fact, this series made no assumption which hardware/display controller will be the user. I have investigated before respin this patch, there are other hardwares which ship the it66121 display bridge. For example, the Fresco Logic FL2000dx USB 3.0 to VGA display adapter[1][2]. Even the windows have a driver. [1] https://github.com/FrescoLogic/FL2000 [2] https://oemdrivers.com/graphics-fresco-logic-fl2000