linux/drivers/phy/rockchip
Cristian Ciocaltea edf9e04955 phy: phy-rockchip-samsung-hdptx: Select CONFIG_MFD_SYSCON
Compile testing configurations without REGMAP support enabled results in
a bunch of errors being reported:

  ../drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:569:21: error: variable ‘rk_hdptx_phy_regmap_config’ has initializer but incomplete type
    569 | static const struct regmap_config rk_hdptx_phy_regmap_config = {
        |                     ^~~~~~~~~~~~~
  ../drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c:570:10: error: ‘const struct regmap_config’ has no member named ‘reg_bits’
    570 |         .reg_bits = 32,
        |          ^~~~~~~~

Note that selecting REGMAP alone is not enough, because of the following
liker error:

  phy-rockchip-samsung-hdptx.c:(.text+0x10c): undefined reference to `__devm_regmap_init_mmio_clk'

Instead of the obvious fix to enable REGMAP_MMIO, select MFD_SYSCON,
which implicitly enables REGMAP_MMIO as well.  The rationale is that the
driver has been already relying on the syscon functionality.

Moreover, without MFD_SYSCON enabled, the test coverage is reduced,
since the linker might not detect any potential undefined references
following syscon_regmap_lookup_by_phandle() invocation in
rk_hdptx_phy_probe() body.  That is because the function would
unconditionally return -ENOTSUP, hence the compiler is free to optimize
out any unreachable code.

Finally ensure PHY_ROCKCHIP_SAMSUNG_HDPTX depends on HAS_IOMEM, as
required by MFD_SYSCON.

Fixes: 553be2830c ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20240629-rk-hdptx-compile-test-fix-v1-1-c86675ba8070@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2024-07-02 18:41:00 +05:30
..
Kconfig phy: phy-rockchip-samsung-hdptx: Select CONFIG_MFD_SYSCON 2024-07-02 18:41:00 +05:30
Makefile phy: rockchip: add usbdp combo phy driver 2024-04-12 16:59:26 +05:30
phy-rockchip-dp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
phy-rockchip-dphy-rx0.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-rockchip-emmc.c phy: rockchip: emmc, add vendor prefix to dts properties 2021-01-13 17:28:24 +05:30
phy-rockchip-inno-csidphy.c phy: rockchip: phy-rockchip-inno-csidphy: Convert to platform remove callback returning void 2023-03-20 18:14:57 +05:30
phy-rockchip-inno-dsidphy.c phy: rockchip: inno-dsidphy: Add rv1126 support 2023-08-22 19:28:11 +05:30
phy-rockchip-inno-hdmi.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-rockchip-inno-usb2.c phy: phy-rockchip-inno-usb2: Add RK3128 support 2023-11-27 18:36:29 +05:30
phy-rockchip-naneng-combphy.c Merge branch 'fixes' into next 2024-04-12 15:01:28 +05:30
phy-rockchip-pcie.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-rockchip-samsung-hdptx.c phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver 2024-02-16 12:26:56 +05:30
phy-rockchip-snps-pcie3.c phy: rockchip-snps-pcie3: add support for rockchip,rx-common-refclk-mode 2024-04-13 11:36:15 +05:30
phy-rockchip-typec.c phy: rockchip: phy-rockchip-typec: Use devm_platform_get_and_ioremap_resource() 2023-07-12 22:27:40 +05:30
phy-rockchip-usb.c phy: Use device_get_match_data() 2023-10-13 15:45:40 +05:30
phy-rockchip-usbdp.c phy: rockchip: usbdp: fix uninitialized variable 2024-04-17 19:58:11 +05:30