drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency
Subsystems (3)
PATCH v2 1/1 drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency
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.
---
Changes in v2:
- Added missing Suggested-by tag
drivers/gpu/drm/mediatek/mtk_dp.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/mediatek/mtk_dp.c +1 -0
@@ -2818,3 +2818,4 @@ MODULE_AUTHOR("Markus Schneider-Pargmann <[email protected]>");MODULE_AUTHOR ("Bo-Chen Chen <[email protected]>" );MODULE_DESCRIPTION ("MediaTek DisplayPort Driver" );MODULE_LICENSE ("GPL" ); +MODULE_SOFTDEP ("pre: phy_mtk_dp" );
Signature · 1 line
2.42.1
Quoted 12 lines · Nícolas F. R. A. Prado
The
mtk_dpdriver registers a phy device which is handled by thephy_mtk_dpdriver 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 themtk_dpdriver to fail probe in this case.Add the
phy_mtk_dpmodule as a pre-dependency to themtk_dpmodule to ensure the phy module has been loaded before the dp, so that the phy probe happens synchrounously and themtk_dpdriver can probe successfully even with the phy driver built as a module.
Quoted 6 lines
Suggested-by AngeloGioacchino Del Regno <[email protected]>Fixes f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")Signed-off-by Nícolas F. R. A. Prado <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>---
Quoted 19 lines
Changes in v2:
- Added missing Suggested-by tag
drivers/gpu/drm/mediatek/mtk_dp.c| 1 +1 file changed, 1 insertion(+)drivers/gpu/drm/mediatek/mtk_dp.c +1
-1@@ -2818,3 +2818,4 @@ MODULE_AUTHOR("Markus Schneider-Pargmann <[email protected]>");MODULE_AUTHOR ("Bo-Chen Chen <[email protected]>" );MODULE_DESCRIPTION ("MediaTek DisplayPort Driver" );MODULE_LICENSE ("GPL" ); +MODULE_SOFTDEP ("pre: phy_mtk_dp" ); --2.42.1
Hi, Nicolas:
Nícolas F. R. A. Prado <[email protected]> 於 2023年11月21日 週二 下午10:29寫道:
Quoted 8 lines
The
mtk_dpdriver registers a phy device which is handled by thephy_mtk_dpdriver 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 themtk_dpdriver to fail probe in this case.
Quoted 4 lines
Add the
phy_mtk_dpmodule as a pre-dependency to themtk_dpmodule to ensure the phy module has been loaded before the dp, so that the phy probe happens synchrounously and themtk_dpdriver 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=mediatek-drm-next
Regards,
Chun-Kuang.
Quoted 26 lines
Suggested-by AngeloGioacchino Del Regno <[email protected]>Fixes f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")Signed-off-by Nícolas F. R. A. Prado <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>---
Changes in v2:
- Added missing Suggested-by tagdrivers/gpu/drm/mediatek/mtk_dp.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/mediatek/mtk_dp.c +1
-1@@ -2818,3 +2818,4 @@ MODULE_AUTHOR("Markus Schneider-Pargmann <[email protected]>");MODULE_AUTHOR ("Bo-Chen Chen <[email protected]>" );MODULE_DESCRIPTION ("MediaTek DisplayPort Driver" );MODULE_LICENSE ("GPL" ); +MODULE_SOFTDEP ("pre: phy_mtk_dp" ); --2.42.1