Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3069600rwb; Mon, 3 Oct 2022 09:14:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7D2KDHf9i29qrEp+NdVqdleZOuMXugxNyjZnoqT30yq1GytWm+ITpa658ZF8jaVjMi+bPJ X-Received: by 2002:a17:90b:1e04:b0:20a:7d0a:3de9 with SMTP id pg4-20020a17090b1e0400b0020a7d0a3de9mr10358600pjb.174.1664813665413; Mon, 03 Oct 2022 09:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664813665; cv=none; d=google.com; s=arc-20160816; b=rIVHQ77gOsvrTKlLD2SM+kFq/KDwwhNC8muszFSf9pEiFITvwJ8wTUNHNsYbH1YBNr 1UC4ygIXP6WJI+TYjpTxJOuffcc0KB1Z7qUKqPAikwRMfITtZDycvDUqk5aPqH5aOYAK RVrz95xAiRaT+ftqncx7BoIqf2nZnzU8LbVuV432fRPhBTw+KbZNMs28/ZwkFkiA1SnY DCQ+hQWlGaW8N3ubddkXC36tiF6IbQ2gj5S1rndRSlsvRSBc/Y+8yerpX8SP3UYS/0ub lKPsPHC4xhSmjGieFG04wfj/Ap71x/n3qCxlUDUx8cqPpKSGuOZpP5UDh8ylOGWFRR/R rpSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :in-reply-to:references:user-agent:from:dkim-signature; bh=sBjMELHhs7ootP+M1ePzkemYasHrxvoQKWyxZ5SKdJc=; b=q2RFG9Sy36OiTwcs6+Lx1B5t/DChoZBQI60tz1frPuT4u4/kj6nCbqW/t93iLjCl++ DxhZmqqvpkpf0IKiijWfyc8hIa3rY+1PtlooCsgDhYkomXD9FVJ52s9FNW7s5jSvYkNJ wR5u5KrhuKjR/21iscx1qEIjqmwGOO52iV3HfAur67dgWCAocJRTsQFlHb6GXMb4Edjy FiJ7XERGamYns8G/vPGk3J8ghApbkaWUulDD5nTrBUs4teatc1svCwHucSLqEReAg+mJ Yeo9NihL47zNESyT1n7SI0hHkKKQgnqHqttZZoIlBlhQvJQO9zUTGNre7vGoZfnBHKp+ 5KQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=6TeHRYpK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a63160b000000b00439a5dfc485si11135508pgl.357.2022.10.03.09.14.10; Mon, 03 Oct 2022 09:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=6TeHRYpK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbiJCPjc (ORCPT + 99 others); Mon, 3 Oct 2022 11:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiJCPj2 (ORCPT ); Mon, 3 Oct 2022 11:39:28 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5793A2A947 for ; Mon, 3 Oct 2022 08:39:26 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id u24so3025907plq.12 for ; Mon, 03 Oct 2022 08:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:in-reply-to:references :user-agent:from:from:to:cc:subject:date; bh=sBjMELHhs7ootP+M1ePzkemYasHrxvoQKWyxZ5SKdJc=; b=6TeHRYpKr4iA6ltAvmCjUEoPS1XHVEd06IoCPr9cBmfj4KcCCpxO4crfMKOV3j+ttD nSeOZOMohexUm4wDctC02d16DMakiBRtjI4eW7FpPc2+VsURaV8CZmi/Rv50Ju0O6bDZ mdJ6TzLmnXN/GWGyzbrtYytsMwPzUJ4T13JD1nY6dCnb/sWc4wLvd3XZoRV5ZBtrJSXZ NYuEIairpytFb3UeLbZhZryD3bGVjUZEKacG8YLZDJT1Z/e2blxmqYGhx6Od824QDPR1 oAdtoO8RRJNF37qDOUwsRz2nYEHUq2YFqJ+davPWQhI4GkSOm08p1XzZO+oufH7CzHlN JmWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:in-reply-to:references :user-agent:from:x-gm-message-state:from:to:cc:subject:date; bh=sBjMELHhs7ootP+M1ePzkemYasHrxvoQKWyxZ5SKdJc=; b=Rj1BBz+6gpMxOqMxFY/LET4NZVXV0Msrtr8r8vNaFgQiubSxTF2hyqcQIybjDWLPph TjhkdQY8p35XQU+RxJf0lr8Y4WsV748ZG9Xi7JeDxzEX3RCG6RbAu6Vzao+aWjRj6QdZ K+JMY6GNlS9BgiL49DpebaRhDsaEolUtWfoxjYlP9d9lbOS/pva4D11d/0zl65lSamhh b+J5M+CRF1p715aQAj1BBp6ru4iJ/BYq4sPpgN6vCBORR5ktoeAjZVdFWdz1BSVy0Mn6 RRZzCd8V9ELog7evE+f/Wd1K0R4TzauFKgxFwsgue2e9quys7cf8Xa8oAWNgvyiBKqO7 0jiw== X-Gm-Message-State: ACrzQf1CzUVe8+RSsAK/9Hg9Drka12s9Z8XUX/iQbey1mstqNGS8DWtJ SZI/TUpzu54jWZkRi2FpfyjQ2mZyMgHkpgqHjYi0ug== X-Received: by 2002:a17:90b:2643:b0:205:bd0d:bdff with SMTP id pa3-20020a17090b264300b00205bd0dbdffmr12433645pjb.99.1664811565787; Mon, 03 Oct 2022 08:39:25 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Oct 2022 17:39:25 +0200 From: Guillaume Ranquet User-Agent: meli 0.7.2 References: <20220919-v1-0-4844816c9808@baylibre.com> <20220919-v1-9-4844816c9808@baylibre.com> <5920ba96-886c-1195-656a-a98d7b1f6623@collabora.com> In-Reply-To: <5920ba96-886c-1195-656a-a98d7b1f6623@collabora.com> MIME-Version: 1.0 Date: Mon, 3 Oct 2022 17:39:25 +0200 Message-ID: Subject: Re: [PATCH v1 09/17] drm/mediatek: hdmi: add connector flag To: AngeloGioacchino Del Regno , Matthias Brugger , Vinod Koul , Stephen Boyd , David Airlie , Rob Herring , Philipp Zabel , Krzysztof Kozlowski , Daniel Vetter , Chunfeng Yun , CK Hu , Jitao shi , Chun-Kuang Hu , Michael Turquette , Kishon Vijay Abraham I Cc: linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, Pablo Sun , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mattijs Korpershoek , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Sep 2022 12:38, AngeloGioacchino Del Regno wrote: >Il 19/09/22 18:56, Guillaume Ranquet ha scritto: >> Add a flag to indicate support for an external connector >> >> Signed-off-by: Guillaume Ranquet >> >> diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi_common.c b/drivers/gpu/drm/mediatek/mtk_hdmi_common.c >> index 86653ebaacfd..30407603d693 100644 >> --- a/drivers/gpu/drm/mediatek/mtk_hdmi_common.c >> +++ b/drivers/gpu/drm/mediatek/mtk_hdmi_common.c >> @@ -199,20 +199,22 @@ int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi, struct platform_device *pdev, >> goto put_device; >> } >> >> - remote = of_graph_get_remote_node(np, 1, 0); >> - if (!remote) { >> - ret = -EINVAL; >> - goto put_device; >> - } >> - >> - if (!of_device_is_compatible(remote, "hdmi-connector")) { >> - hdmi->next_bridge = of_drm_find_bridge(remote); >> - if (!hdmi->next_bridge) { >> - dev_err(dev, "Waiting for external bridge\n"); >> - of_node_put(remote); >> - ret = -EPROBE_DEFER; >> + if (hdmi->conf->has_connector) { > >If MT8195's DPI uses the internal HDMI->DP converter, I say that the external >DP has HDMI input and DP output. >Logically, you can't have a HDMI port that's connected to nothing. > >Please, rethink this change. > >Regards, >Angelo Hi Angelo, Sorry for the late answer. I have reworked this for V2, to use an hdmi connector device node to "bind" both the hdmi and hdmi-ddc driver together as with "legacy" code. So this patch is dropped in V2 (hopefully ready soon). Just to make things clear, the hardware path on mt8195 is: DPI1 -> HDMI Tx -> HDMI Phy DP Intf1 -> DP Tx -> USB Type C Mux -> DP over USB-C So there's no HDMI->DP converter involved. Thx, Guillaume.