Skip to content

Commit d092bd9

Browse files
arndbvinodkoul
authored andcommitted
phy: mediatek: allow compile-testing the dsi phy
Randconfig builds show another broken dependency: WARNING: unmet direct dependencies detected for PHY_MTK_MIPI_DSI Depends on [n]: ARCH_MEDIATEK [=n] && OF [=y] Selected by [m]: - DRM_MEDIATEK [=m] && HAS_IOMEM [=y] && DRM [=m] && (ARCH_MEDIATEK [=n] || ARM [=y] && COMPILE_TEST [=y]) && COMMON_CLK [=y] && HAVE_ARM_SMCCC [=y] && OF [=y] && MTK_MMSYS [=y] This is similar to the hdmi driver I fixed earlier, and I guess the common-clk bug would sooner or later also manifest here, so just use the exact same solution I chose for the other driver, and hope that any future drivers just copy it from here. Fixes: 90f80d9 ("phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder") Fixes: f5f6e01 ("phy: mediatek: allow compile-testing the hdmi phy") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 764257d commit d092bd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/phy/mediatek/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ config PHY_MTK_HDMI
4949

5050
config PHY_MTK_MIPI_DSI
5151
tristate "MediaTek MIPI-DSI Driver"
52-
depends on ARCH_MEDIATEK && OF
52+
depends on ARCH_MEDIATEK || COMPILE_TEST
53+
depends on COMMON_CLK
54+
depends on OF
5355
select GENERIC_PHY
5456
help
5557
Support MIPI DSI for Mediatek SoCs.

0 commit comments

Comments
 (0)