Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp407325rdf; Tue, 21 Nov 2023 06:07:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeizDRkT0oxkO2A++vL6ggZmKrJcPcqowIljz2glbImuM4OLcauOGOMKCwxAMAs/7TFiFH X-Received: by 2002:a05:6a20:12c2:b0:186:736f:7798 with SMTP id v2-20020a056a2012c200b00186736f7798mr14106822pzg.11.1700575668030; Tue, 21 Nov 2023 06:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700575668; cv=none; d=google.com; s=arc-20160816; b=EVSZaVgrugRolqWmWLZ26gyo7RYA0dGrxUe5Gw4Pfqq2JW5gms37VavdrNQG2ImuF0 PSAKxXBnfRzO5pLEqhR3BsOvgsG74MpuiQI35HcbbobIjjOjDmcnwd2YiTiEY2vU5eTO hj1Nbr7Qy6twtscip9OOFodd9kBvev9V3w1Ywf7gChZ9hxo+uGt/pH8iFBD8vPYlALYy yNJJ44x8xaEqVqbJ9QO9qdVhz5OwDa/MvlJ8aTnray6UyWjuDZDf0b/y+NYlg6f2inFb oEi01xkdSMZE6Zs52yRJsnI5A7V/BkNJj2q+cVTrVAw2MLWLlncHDgL7ZalroEH38qct 3Axg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=60B3pY2Xh9Y2HNT0lmY5uQ/shIvHzIzMRUkrhJKA0Io=; fh=dsbokubAHw2kDe6QDvKL4XmGct712ejpr/EXaAqYxfc=; b=cY4vjPGyzXMRA2l17FgNVjXMC8gx+xV8WkvOAsXOF9iukPwqYk+HkSrLbqkY8wtNYv DbwASKAzaCyHhUUpMoC1lHy8bi4NkZP4aVIAzMlGDnc7mZbnadthOboMBjcNUWjz9XNi IHP44SFdzXB70AjGn/ipW8vuDAN0Vg8BRdAnrseOOQIZvwjo4R98PsJ/rnwmhXjMccim fG6u5obEgY7jJsxsfxDQCYg/jUtcf0qrepU7eC9UTqNYRtnNHkY3d0uOpWSGiIbPpF8R yYjZsSff2Kg1A3YlpxTa2TmA7sDYPx1B2i7LTHfPEd6rRbuUeG/bYyBuU4zaehNMcOPz qqXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=C4syRfR2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p3-20020aa79e83000000b006cb43790a2csi7851619pfq.403.2023.11.21.06.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:07:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=C4syRfR2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 73FA2807748C; Tue, 21 Nov 2023 06:07:45 -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 S233930AbjKUOHh (ORCPT + 99 others); Tue, 21 Nov 2023 09:07:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233881AbjKUOHg (ORCPT ); Tue, 21 Nov 2023 09:07:36 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAAC7121 for ; Tue, 21 Nov 2023 06:07:32 -0800 (PST) Received: from notapiano (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 45C1966072F6; Tue, 21 Nov 2023 14:07:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700575651; bh=tOGWTmQJW/JANHeyGfQepL3uI6iHK1P8zxtRmtORk2o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C4syRfR21MGFLX1wH3nywSpQpCUGVfO1aI/4C99i7AxCnFTJB+cas+a+yAy/3lsL1 ApnAIbNuyYVeDlg9mff0itSwKCOvUF+P1BOS/qrkMY0MrAaWs6EbPSdZbhmbn+kZg0 NFXmAiDw5AU7uiAa0cmpJQWDp5O48pa7rGT+AdP85Q1ogWoW+tAID6+tpMmFafhJ4z H9ZkUeXDPVHO7kro8Nl95ff6G68TOkqGJmFUyoAFKxBgCoQkavB3XgfDC18kzxEt2t /v0H3r4k5++qjcZCJu7tdUFKbck/1sxl+MstUPYA0WWWnCBmwqFUDJy+kR99aQksNZ e/yyLWFgkmo0Q== Date: Tue, 21 Nov 2023 09:07:24 -0500 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: AngeloGioacchino Del Regno Cc: Chun-Kuang Hu , kernel@collabora.com, Bo-Chen Chen , CK Hu , Daniel Vetter , David Airlie , Dmitry Osipenko , Guillaume Ranquet , Markus Schneider-Pargmann , 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 Subject: Re: [PATCH] drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency Message-ID: <1de08400-8441-43b9-9104-395444bccc0e@notapiano> References: <20231120202837.396760-1-nfraprado@collabora.com> <8fd1affd-936d-415e-9f1f-b0415b68ddb6@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8fd1affd-936d-415e-9f1f-b0415b68ddb6@collabora.com> 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]); Tue, 21 Nov 2023 06:07:45 -0800 (PST) On Tue, Nov 21, 2023 at 11:59:14AM +0100, AngeloGioacchino Del Regno wrote: > Il 20/11/23 21:28, N?colas F. R. A. Prado ha scritto: > > 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. > > > > You forgot a Suggested-by here :-P Oops, sorry, I forgot that tag existed. Will send a v2 with it added :). > > > Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") > > Signed-off-by: N?colas F. R. A. Prado > > It's fine anyway; being the best solution that we can use: > > Reviewed-by: AngeloGioacchino Del Regno > > > > > --- > > > > 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"); >