Patch "phy: phy-rockchip-samsung-hdptx: Select CONFIG_MFD_SYSCON" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    phy: phy-rockchip-samsung-hdptx: Select CONFIG_MFD_SYSCON

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     phy-phy-rockchip-samsung-hdptx-select-config_mfd_sys.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9025b9316a757bc86873b5a2c499c2588d43e7e2
Author: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx>
Date:   Sat Jun 29 03:26:58 2024 +0300

    phy: phy-rockchip-samsung-hdptx: Select CONFIG_MFD_SYSCON
    
    [ Upstream commit edf9e04955d2387032beac54ebf20b43aaca2adf ]
    
    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: 553be2830c5f ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver")
    Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240629-rk-hdptx-compile-test-fix-v1-1-c86675ba8070@xxxxxxxxxxxxx
    Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/phy/rockchip/Kconfig b/drivers/phy/rockchip/Kconfig
index 08b0f43457606..490263375057b 100644
--- a/drivers/phy/rockchip/Kconfig
+++ b/drivers/phy/rockchip/Kconfig
@@ -86,7 +86,9 @@ config PHY_ROCKCHIP_PCIE
 config PHY_ROCKCHIP_SAMSUNG_HDPTX
 	tristate "Rockchip Samsung HDMI/eDP Combo PHY driver"
 	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on HAS_IOMEM
 	select GENERIC_PHY
+	select MFD_SYSCON
 	select RATIONAL
 	help
 	  Enable this to support the Rockchip HDMI/eDP Combo PHY




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux