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 4460F6BB53; Tue, 23 Jan 2024 02:02:51 +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=1705975371; cv=none; b=GoCanoAYyvv0soSdr1kAkJ3lF6zbjwxdZWr8EaKFYZdgLaHWzj9k9m0WHqrTzeVCT8M92AtPPK9aProEjt7ihtkfPA7tHw/1xFoJPT2S/Y7CLvcy2YfHViw6oTML5QM/9Z5DzWYcNLrB9yjd3cT3BLTWOFyb/+Q8zqDP06TA6e4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705975371; c=relaxed/simple; bh=F+VTA57fpzlko79M7ubzpnh5Z3J8GD5FiIkEw3GdtYs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=O+HUZ9H+tItX3kSO04oDUk4RYfVKXYtJ031LXs9XOT/j8UBqcwJaSNda2wkV613eL0RewtOO/d94tJLKq2KpYZPhyxSkc875c91noUrCt7+eNyTiwmQ9li+AMLs/QCUv3/oSYS8B5XHOFm5AsCPIm7nK6g5rFegiR9fL6k/ZxUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y+i43I2F; 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="Y+i43I2F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A337C43394; Tue, 23 Jan 2024 02:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705975371; bh=F+VTA57fpzlko79M7ubzpnh5Z3J8GD5FiIkEw3GdtYs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y+i43I2FjS2bOXJVXz/8X+35ibOBub2Kfk2NptcjIYrvtx+qfoVh5yDSQ7K6u8hWG VTMt951KZU2+/xLPytUr+WIZnjdf1YYjPXPzi9RnUYbf/QnqoFRjTeblaokB2hLS0+ +6xxqWwzgNoGv9J00p0HJAyIcaNIfae4oT+ATpx8= 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.6 308/583] drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency Date: Mon, 22 Jan 2024 15:55:59 -0800 Message-ID: <20240122235821.456320592@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235812.238724226@linuxfoundation.org> References: <20240122235812.238724226@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-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 0e285df6577e..4052a3133b57 100644 --- a/drivers/gpu/drm/mediatek/mtk_dp.c +++ b/drivers/gpu/drm/mediatek/mtk_dp.c @@ -2784,3 +2784,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