Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp291642rdf; Tue, 21 Nov 2023 02:59:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3XD+hdXnxixvIkGZFlfQ1elGPrE7NymlTTde4J3DsGdOdV9jFW6WfvwAkqlbsCE685GAa X-Received: by 2002:a05:6a20:be95:b0:184:7ec7:2bfb with SMTP id gf21-20020a056a20be9500b001847ec72bfbmr5484298pzb.11.1700564373862; Tue, 21 Nov 2023 02:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700564373; cv=none; d=google.com; s=arc-20160816; b=OZXfIjQjhYWqzg7jIlQN++f7HqDXs44EJkM2dcz7nFHKxpWmbXPhP5dwuQ+HP+Hqv+ DMn517nws3AcGb5FwWRpdpXVS7mxCn8u32e5nlHh5ImmpMkP0+MBjG7l9oLYrBZxLaA6 zyUNake0Qe3nwpzNvanGkTO2POS6QNAtvhspr2/ZBTALk3Nxw2Sq8/l2DrTBI04UljA1 OzT5Y65KaSI/Vrs6/D+2OEQ/47wWwOPO3S+UBFTmmaKOtcNFfYoFncywcLimHCZv1y9b H7GoTl/Q1ODjVdyA1uw2vumQVFft/ES3kPXqgsSCQeVcn+2VxE1nykBCVmgBTSRTBtt6 QzMA== 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:user-agent:mime-version :date:message-id:dkim-signature; bh=PnL16nP+tLU6ypEK+2+iyPqv24x1710gqUDu/uGE11I=; fh=pl1Uv10c0qK8gJfg8kdv/ZJH/82PSNxQ9j7fGqR+NIo=; b=Nh+aYdV432DqNb4OvWBvd/wjHoWSpqeqWDxUOGsSQOJz2/o8Ph03FFbcgweDKP3gRH Ejt8DC2+RdnxZSZkEAiYDovDnINMdL3maG3AAvn8fez8il4VNJQrBBb28BshfxTfSy42 KB2d/BUtc+CQMO6kSw41yq92gjzH//d2cbf3JHqnr7iresewFhlGJZuDHiDMPry02Rw6 ITKnvtPBpBMjG+6XzSNZ9acMiq0ae/4CGShoXnhSEiZw4ONHSnZI6l5alRCiekEsc8D7 rGlZ917aLPoZzmqHkZ/8aSVaUJLd5vomSikegcQiDdqgzz44oxWEx7ZGiluSEkzO4Es/ mX4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gAvj6e7d; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i6-20020a1709026ac600b001bbfbe6bf3esi9818639plt.504.2023.11.21.02.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:59:33 -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=@collabora.com header.s=mail header.b=gAvj6e7d; 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=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 48D26804EE4E; Tue, 21 Nov 2023 02:59:31 -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 S233570AbjKUK7Y (ORCPT + 99 others); Tue, 21 Nov 2023 05:59:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKUK7X (ORCPT ); Tue, 21 Nov 2023 05:59:23 -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 B33CD83 for ; Tue, 21 Nov 2023 02:59:19 -0800 (PST) Received: from [100.107.97.3] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 61B9466072F6; Tue, 21 Nov 2023 10:59:17 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700564358; bh=hLDTvtjHXdN1UWZwGnLWI4X4zJiWHH+M2Ta83yfqwfo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gAvj6e7dR5Diin4goCICBXZjFF0Mbi7wDy70vPr2MNWXzA9tHviIkY3PWf86K/pvy Q8WDKjMTWUL5RqPnWYw07zhdKrpVX8GioYG3k5iIYOX3CFRji0z2lDf8BnuxMrod2H LM908JjgUDU4b0bAT+bhXKkuEeWodKrXiRKvt3IvN06Ye6B3AL7mfoU7q40/wIRqVE asPetWPduA2+TQQ3nZ5N87ylwqDjQOosNtsDQ9YSiVw/MNqEUtYMIsm2DkiFCgwCeF tud5BpwDx8qo2EuUduEn7ApiU8e/RaV6WQqB1tFdZV4ZNySVIF/3hmmBd3GE9fbRx7 Ml/4gYS9CYO4g== Message-ID: <8fd1affd-936d-415e-9f1f-b0415b68ddb6@collabora.com> Date: Tue, 21 Nov 2023 11:59:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Chun-Kuang Hu Cc: 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 References: <20231120202837.396760-1-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20231120202837.396760-1-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 02:59:31 -0800 (PST) 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 > 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");