]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: qcom: uniphy-28lp: add COMMON_CLK dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Mar 2025 15:49:10 +0000 (16:49 +0100)
committerVinod Koul <vkoul@kernel.org>
Sun, 16 Mar 2025 16:38:10 +0000 (22:08 +0530)
commitbe8f23cebdb9546beb30ad15ff59130b66c8f2ac
treef471050b2229f48afba3238573a7baac3279b6a2
parentb52b330046d16f6e4ce94ae6fa349cc30af027b3
phy: qcom: uniphy-28lp: add COMMON_CLK dependency

In configurations without CONFIG_COMMON_CLK, the driver fails to build:

aarch64-linux-ld: drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.o: in function `qcom_uniphy_pcie_probe':
phy-qcom-uniphy-pcie-28lp.c:(.text+0x200): undefined reference to `__clk_hw_register_fixed_rate'
aarch64-linux-ld: phy-qcom-uniphy-pcie-28lp.c:(.text+0x238): undefined reference to `of_clk_hw_simple_get'
phy-qcom-uniphy-pcie-28lp.c:(.text+0x238): dangerous relocation: unsupported relocation
aarch64-linux-ld: phy-qcom-uniphy-pcie-28lp.c:(.text+0x240): undefined reference to `of_clk_hw_simple_get'
aarch64-linux-ld: phy-qcom-uniphy-pcie-28lp.c:(.text+0x248): undefined reference to `devm_of_clk_add_hw_provider'

Add that as a Kconfig dependencies.

Fixes: 74badb8b0b14 ("phy: qcom: Introduce PCIe UNIPHY 28LP driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250314154915.4074980-1-arnd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/Kconfig