Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp431484rdf; Tue, 21 Nov 2023 06:41:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVuOIuQ1s4qSXlVGAaCvW8EJreuELrtjaRsY0V1ajoAjFDaIqQEeXZ3ra48ZJ1AZ9MTyKc X-Received: by 2002:a92:d091:0:b0:359:4376:6615 with SMTP id h17-20020a92d091000000b0035943766615mr9957418ilh.30.1700577716225; Tue, 21 Nov 2023 06:41:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700577716; cv=none; d=google.com; s=arc-20160816; b=SZ+HAN19dWQN3PF8MBfv8deDmWzqNvixR3kFa3VWr44adf470ftqPqU0jPt+r9AkCj 80B5m2R1tWCQshw3rrSPKmVWayeq1nlGvcp52VZiuxndo05BYyiYIDqHf77s8lc++qxM UwuiSf7cu1/ApxgmC2G0EZScP2bS+ThE7dK5Y9JTGnKk6dJbcyMJn/9v8jraqw2DTNUf 4eaPIGjLGUHXyszmTSrKvXjJZFd2THEJiJai98B4WNR9qx5hU8O8FCbBgLeZp97JWOTs JBIPfkKlwNSiRBBlzk6omrbTwEoE15sj2o0tGgKo6cStomlYaddVvHAbIYbPjwpXZydq 8Sqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:mime-version:in-reply-to:references:user-agent:from :dkim-signature; bh=ImxWZyQw+OzqcqVpcmrRNXVgXf/9MkOc4lXvk9lNMHc=; fh=L1MDO5A7yLgEsr3M2X9qfikkVSqVHm0IcglwmMOFafs=; b=jvgA9oA+E/5R0rMSMQF89a2EE6GOxXwEMRF92DsGFKAuvABROkzJq6GP8rHtmqu4AQ TzWbtVTdrqfhivYvLR9dmgUuK9w03UKu9XaHry2LwXWddq9SpYILIdUOQCPFFj8AjgSB +EkQZKqxeWMM7jUuW4hAAzup3nCYzrq22D4wG0OVtWllSCAJnTWRNL/PRF6Gkb8ENQEP MfnNqQfUfLi58m9uwci2pPpeLgMCsItoY/YUgHBkngKxbYcq7B6Bucd2dTCWBrraWJV+ i2rrt7cvCI5qSMHqM430vxpEl+DBj4l3S+3a+mNdWKBmkrNGjWs4rd+2ku61+ZScHS2d U1ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=QKkWxSbV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bx11-20020a056a02050b00b00577960a815csi11272421pgb.188.2023.11.21.06.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:41:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=QKkWxSbV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A8CE3805B2C5; Tue, 21 Nov 2023 06:41:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234347AbjKUOlF (ORCPT + 99 others); Tue, 21 Nov 2023 09:41:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234291AbjKUOlB (ORCPT ); Tue, 21 Nov 2023 09:41:01 -0500 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64DC5D51 for ; Tue, 21 Nov 2023 06:40:54 -0800 (PST) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1f0f94a08a0so3336463fac.2 for ; Tue, 21 Nov 2023 06:40:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1700577653; x=1701182453; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:in-reply-to:references:user-agent:from:from:to:cc :subject:date:message-id:reply-to; bh=ImxWZyQw+OzqcqVpcmrRNXVgXf/9MkOc4lXvk9lNMHc=; b=QKkWxSbVi1SUuQpLPyJG1BvHG9c8Dksb8rYNC1ZjWysXLKBHMNuLve1yFwoBVUESGU HAiHxDyxsbJq0hC9BgM1LobXBPK/1tHChKLsjy0F/9V//av7o8NhCRCt+QNV86jC9CkB 8quxcnv3A+h9YHUd6sBPPVE+je1D+oYPx/BUqJXqyYoo1WqtCqycJ6auvS502Wt3tn5I WKLC47AP859oq+VgcMYXX3KDR77NMbZ6PLyPpZgCza9XsMljqMAVroblgV+4LCeEKH5u Gr6rDJrjxFqulCd7m1Jtmal+NzkpJjQ9Y+3U9P9/E9t1Z9AU++ZV1c5Ljw66r5EkmRYU kOyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700577653; x=1701182453; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:in-reply-to:references:user-agent:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ImxWZyQw+OzqcqVpcmrRNXVgXf/9MkOc4lXvk9lNMHc=; b=tV0ZRf1hp24NB96Np9YRRcz6Sh2ufBDaMo2aHx4nkiKm1TRSiw2uFPfP/ceHcgibfb dXXTVSTEXMkDj2FX9HgBeA/Px4F0TE7y8gtyA8u5W4MkKXDuj74g2pLrK+M4c45do4OV rxP2M0Pjnyq15jLodtrQkzbzztAiV/Do6GmSaBbB4b8KZb8vGrNqMSDIGEUCrTae0jLp VPqDA8Dm62YU4CBHtF+AECaw0z1oPgAnv9wFf1qfRGrOPqW4VwTGsRoNSZzyxZwp7WpJ 6q+7WQfFyVAOPY3vmEpRsGIPKLpW4YPtSBitq6mhh9ZMn1apMhl+1Eb8vzHNeDcqffBA t5Hw== X-Gm-Message-State: AOJu0YwyyQA7hg61PU+ZtWwVxY1U/hh3yYlxW7sxLFeOehGT3pNo14RF tqJtFQE/DmYtHTL1ts+c6ATxi9cKFLxOLo8FCOqe/o3h0gEIH2rq X-Received: by 2002:a05:6870:3b85:b0:1f9:36fe:fd0e with SMTP id gi5-20020a0568703b8500b001f936fefd0emr5880414oab.47.1700577652158; Tue, 21 Nov 2023 06:40:52 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 21 Nov 2023 06:40:51 -0800 From: Guillaume Ranquet User-Agent: meli 0.7.3 References: <20231121142938.460846-1-nfraprado@collabora.com> In-Reply-To: <20231121142938.460846-1-nfraprado@collabora.com> MIME-Version: 1.0 Date: Tue, 21 Nov 2023 06:40:51 -0800 Message-ID: Subject: Re: [PATCH v2] drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency To: =?UTF-8?B?TsOtIGNvbGFzIEYuIFIuIEEuIFByYWRv?= , Chun-Kuang Hu Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Bo-Chen Chen , CK Hu , Daniel Vetter , David Airlie , Dmitry Osipenko , Guillaume Ranquet , Matthias Brugger , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 06:41:12 -0800 (PST) On Tue, 21 Nov 2023 15:29, "N=C3=ADcolas F. R. A. Prado" wrote: >The mtk_dp driver registers a phy device which is handled by the >phy_mtk_dp driver and assumes that the phy probe will complete >synchronously, proceeding to make use of functionality exposed by that >driver right away. This assumption however is false when the phy driver >is built as a module, causing the mtk_dp driver to fail probe in this >case. > >Add the phy_mtk_dp module as a pre-dependency to the mtk_dp module to >ensure the phy module has been loaded before the dp, so that the phy >probe happens synchrounously and the mtk_dp driver can probe >successfully even with the phy driver built as a module. > >Suggested-by: AngeloGioacchino Del Regno >Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver= ") >Signed-off-by: N=C3=ADcolas F. R. A. Prado >Reviewed-by: AngeloGioacchino Del Regno > >--- Reviewed-by: Guillaume Ranquet > >Changes in v2: >- Added missing Suggested-by tag > > drivers/gpu/drm/mediatek/mtk_dp.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/= mtk_dp.c >index e4c16ba9902d..2136a596efa1 100644 >--- a/drivers/gpu/drm/mediatek/mtk_dp.c >+++ b/drivers/gpu/drm/mediatek/mtk_dp.c >@@ -2818,3 +2818,4 @@ MODULE_AUTHOR("Markus Schneider-Pargmann "); > MODULE_AUTHOR("Bo-Chen Chen "); > MODULE_DESCRIPTION("MediaTek DisplayPort Driver"); > MODULE_LICENSE("GPL"); >+MODULE_SOFTDEP("pre: phy_mtk_dp"); >-- >2.42.1 >