phy: mediatek: allow compile-testing the hdmi phy
Subsystems (3)
PATCH 1/1 phy: mediatek: allow compile-testing the hdmi phy
From: Arnd Bergmann <[email protected]>
Compile-testing the DRM_MEDIATEK_HDMI driver leads to a harmless warning:
WARNING: unmet direct dependencies detected for PHY_MTK_HDMI
Depends on [n]: ARCH_MEDIATEK [=n] && OF [=y] Selected by [y]:
- DRM_MEDIATEK_HDMI [=y] && HAS_IOMEM [=y] && DRM_MEDIATEK [=y]
The driver builds fine, so allow compile-testing it as well to get rid of the warning.
--- drivers/phy/mediatek/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/phy/mediatek/Kconfig +3 -1
@@ -40,7 +40,9 @@ config PHY_MTK_XSPHY config PHY_MTK_HDMI tristate "MediaTek HDMI-PHY Driver" - depends on ARCH_MEDIATEK && OF + depends on ARCH_MEDIATEK || COMPILE_TEST + depends on COMMON_CLK + depends on OF select GENERIC_PHY help Support HDMI PHY for Mediatek SoCs.
Signature · 7 lines
2.27.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Chunfeng Yun
maintainerQuoted 24 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Compile-testing the
DRM_MEDIATEK_HDMIdriver leads to a harmless warning:WARNING: unmet direct dependencies detected for
PHY_MTK_HDMI
Depends on [n]:ARCH_MEDIATEK[=n] && OF [=y] Selected by [y]:
-DRM_MEDIATEK_HDMI[=y] &&HAS_IOMEM[=y] &&DRM_MEDIATEK[=y]The driver builds fine, so allow compile-testing it as well to get rid of the warning.
Fixes b28be59a2e26 ("phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/phy/mediatek/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/phy/mediatek/Kconfig +0
-0
drivers/phy/mediatek/Kconfig config PHY_MTK_XSPHY · line 44
Quoted 6 lines
drivers/phy/mediatek/Kconfig +2
-1@@ -40,7 +40,9 @@ config PHY_MTK_XSPHY config PHY_MTK_HDMI tristate "MediaTek HDMI-PHY Driver" - depends on ARCH_MEDIATEK && OF + depends on ARCH_MEDIATEK || COMPILE_TEST + depends on COMMON_CLK
Seems no need add COMMON_CLK here
Quoted 4 lines
drivers/phy/mediatek/Kconfig +1
-0+ depends on OF select GENERIC_PHY help Support HDMI PHY for Mediatek SoCs.
Quoted 6 lines · Chunfeng Yun
Quoted 6 lines
drivers/phy/mediatek/Kconfig +0
-0@@ -40,7 +40,9 @@ config PHY_MTK_XSPHY
Quoted 6 lines
drivers/phy/mediatek/Kconfig config PHY_MTK_XSPHY · line 44
Quoted 5 lines
drivers/phy/mediatek/Kconfig +2
-1config PHY_MTK_HDMI tristate "MediaTek HDMI-PHY Driver" - depends on ARCH_MEDIATEK && OF + depends on ARCH_MEDIATEK || COMPILE_TEST + depends on COMMON_CLKSeems no need add
COMMON_CLKhere
My mistake, I had squashed two build fixes for the same driver but forgot to update the changelog with the other output. This is what happens without CONFIG_COMMON_CLK:
arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi.o: in function `mtk_hdmi_phy_probe':
phy-mtk-hdmi.c:(.text+0xd8): undefined reference to `__clk_get_name'
arm-linux-gnueabi-ld: phy-mtk-hdmi.c:(.text+0x12c): undefined reference to `devm_clk_register'
arm-linux-gnueabi-ld: phy-mtk-hdmi.c:(.text+0x250): undefined reference to `of_clk_add_provider'
arm-linux-gnueabi-ld: phy-mtk-hdmi.c:(.text+0x298): undefined reference to `of_clk_src_simple_get'
I'll resend with that added in.
Arnd
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek