From mboxrd@z Thu Jan 1 00:00:00 1970 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 8F9B512AAF4; Tue, 23 Jan 2024 00:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705971334; cv=none; b=r9eXzus02CQ/6oD542JLrv+3NmRs50H2+KOjOgPgpO06123X0/5hhpZVPgWKSqA35oTnjSPauXwKYFd4Y0BKr3MVf3yape0SGA7QPv2WeQ1qAaHovEGsNjtIjhj0E0joCvHumfSeL7+Tm++nZ++glLgjQ2JGuUq2v1O7n+Ey/ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705971334; c=relaxed/simple; bh=u7NeRdSgIQOCox0zX4WBOZ83aoZYA12vcMRVRlv4uIc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jUTC0NptouUE6zgQDDXK8mTBrV83HlGCTvHH/f1t2ggw+t7FwnyYKyJulrcLlDJY2LUZRMJNuyt//mEaNhj88brxwWM9mCdnbRbt2Xww0Vy0XeiVklhzJmM49DT24DY9xa/A54LgoGjk6FzPJB3t2P7VcHlmMiJZQtIu89RJdd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rlE2rJK0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rlE2rJK0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D75E1C43390; Tue, 23 Jan 2024 00:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705971334; bh=u7NeRdSgIQOCox0zX4WBOZ83aoZYA12vcMRVRlv4uIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rlE2rJK0EAVoCKL/6qo4lDsEEDdvrUJKsP/nJU4sWrhZbqKuJj1G0gcqgLX6H4cVA SKBE0+LlWhqrSW+XjH9+yJkfxChEwHgg5wAKUubz3sBNek7R/AbgF6ApGYuHD0It4x YfHt0tz2py3KS5LeeBiBZ3+WpWnhJGKT2DhFmCmM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, AngeloGioacchino Del Regno , "=?UTF-8?q?N=C3=ADcolas=20F . =20R . =20A . =20Prado?=" , Guillaume Ranquet , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 6.1 225/417] drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency Date: Mon, 22 Jan 2024 15:56:33 -0800 Message-ID: <20240122235759.707761441@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235751.480367507@linuxfoundation.org> References: <20240122235751.480367507@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: NĂ­colas F. R. A. Prado [ Upstream commit c8048dd0b07df68724805254b9e994d99e9a7af4 ] 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Ă­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Guillaume Ranquet Link: https://patchwork.kernel.org/project/dri-devel/patch/20231121142938.460846-1-nfraprado@collabora.com/ Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- 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 2c850b6d945b..519e23a2a017 100644 --- a/drivers/gpu/drm/mediatek/mtk_dp.c +++ b/drivers/gpu/drm/mediatek/mtk_dp.c @@ -2669,3 +2669,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.43.0