Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp139577rdh; Mon, 18 Dec 2023 06:39:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxj0jgl/szuxP5A4T2vvoJlw/ZPDmexkcv09uhpvRVRzt+NeG6E3swkh6/kdS9UisSTclw X-Received: by 2002:a05:6a20:8410:b0:18c:abeb:b0db with SMTP id c16-20020a056a20841000b0018cabebb0dbmr22532092pzd.49.1702910373516; Mon, 18 Dec 2023 06:39:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702910373; cv=none; d=google.com; s=arc-20160816; b=ZzZjy8XYwNDUga8BqTAyMmar6aE3776KRVSPArlRuq5kr2FUndFAf7UWpv6yrsOafn 4eC96uovbuwV3vzUNPUfWO+DhL8JoWXtxkn4DpQfQj10wyy0bGATB7rydrrh+4By/6DM eSdXwrMC65/vsOR55IpZee56DKYe8r46/hF51tR8FOf9Z3CLfnU1c3u2KBiefxAio+78 7QCOU6cg/rE3MFzoYkVpZRA5OpY1RJEYUR2fhrXC5Wof6ZxHi2Sr9akg1UzriSUXF+hL QDhfEjJZ7guSGQ1FY+g72wFzL6usEwm1XG1UOrEyBMf72nPmjVI/zvUmdP62jpuiUvAY U0hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=/RMVDjdy2AMGMArMXCmvLqCMRNUiVOi2O/RLyPtFV+s=; fh=cmrnxG9bAgVSN+3rqt1hcGJGF5ggLQdvlBS65qTClUc=; b=Zfsj5YSh0Rr+V2JSGQexuTdrN9B4xMHnAlryIfWjTL5W0auxxI7pmE4OobDB7Mw2wl G6c549DDV/XWPegIplWPgf3W0Fw77Z7ZZDdzrdF4uD+j4xYzMo4EApdGc2oNse0MDHxc 9EPMCNOMSYJ6UZTLZqxUYRM2RqSpGZrg/Pxbsv/rIgbdwFR22dkcnetBq9pkzw5uvmsW WaxtV/7T/vsFBhiL+JhMl3K5dt63fby0Dn2aBVLqbWihtSibG18JJ4HpHtw0zqZ0SNEi Y0/c1zK1ibKQIWEPPRfujsIOzMwYM2Q5kKqn8Dz3GoqbOeSO+ajmeupZUla/fdeOuCtW v1mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OLKOMdyd; spf=pass (google.com: domain of linux-kernel+bounces-3845-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m12-20020a056a00080c00b006ce060dba6esi4191243pfk.240.2023.12.18.06.39.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 06:39:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3845-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OLKOMdyd; spf=pass (google.com: domain of linux-kernel+bounces-3845-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A585282245 for ; Mon, 18 Dec 2023 14:39:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A911C3A1AA; Mon, 18 Dec 2023 14:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OLKOMdyd" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D950137885 for ; Mon, 18 Dec 2023 14:38:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BD35C433B8 for ; Mon, 18 Dec 2023 14:38:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702910322; bh=kSzzS+rE3ZFEys64qw4zoAxJseoPrLHcYBpQolk4UeI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OLKOMdydbi6vyVhuOEDgdeX5gGnEoJCNZi1PkTEUWYWpp/b6ddUKbFq2O+Yneo5+O /BuXAQ5+QWgW+oOfUZjE6aRujhz5uiXERoAdmu/dmvueV6u5LtQnQa+5tEZeR0/1Wu Dbbqmt3/GTQtKP9MqNJoH7XkyINUAhO1/RlR62UcjlmO3HbgnoS7M1wqT9azJULsk7 ehKKzlAfbp0j7y7550kXk4IGR0/8UP+89YRYhP4x9mMQbYda3pjN6ulj8Rsibo69x+ 7GcA0/w4BQeGKZBf+ju3QBuLhRHlYtbONRjBNCnBKmKWQqJYNDvbKCow4zP2K2Rtxz rSFEePnWh4BUQ== Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-50e18689828so3488592e87.2 for ; Mon, 18 Dec 2023 06:38:42 -0800 (PST) X-Gm-Message-State: AOJu0YyJffiTLbvChSm04ID5csg2+MPLEO3V/84t5KG54gwRns15PUCb g8KTu2sOsk7ZtwOEP0bwNHm3fG8yT3DpWW/Ohw== X-Received: by 2002:a05:6512:3044:b0:50e:1daa:6705 with SMTP id b4-20020a056512304400b0050e1daa6705mr3478799lfb.6.1702910320486; Mon, 18 Dec 2023 06:38:40 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231121142938.460846-1-nfraprado@collabora.com> In-Reply-To: <20231121142938.460846-1-nfraprado@collabora.com> From: Chun-Kuang Hu Date: Mon, 18 Dec 2023 22:38:29 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Chun-Kuang Hu , 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 Hi, Nicolas: N=C3=ADcolas F. R. A. Prado =E6=96=BC 2023=E5=B9= =B411=E6=9C=8821=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8810:29=E5=AF= =AB=E9=81=93=EF=BC=9A > > 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. Applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-next Regards, Chun-Kuang. > > Suggested-by: AngeloGioacchino Del Regno > Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort drive= r") > Signed-off-by: N=C3=ADcolas F. R. A. Prado > Reviewed-by: AngeloGioacchino Del Regno > > --- > > 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 >