phy: starfive: make phys depend on HAS_IOMEM
Vinod Koul
maintainerPATCH 1/1 phy: starfive: make phys depend on HAS_IOMEM
the startfive phy drivers use devm_platform_ioremap_resource() which on some archs (s390) is not present. So make the drivers depend on HAS_IOMEM
--- drivers/phy/starfive/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/starfive/Kconfig +2 -1
@@ -5,6 +5,7 @@ config PHY_STARFIVE_JH7110_DPHY_RX tristate "StarFive JH7110 D-PHY RX support" + depends on HAS_IOMEM select GENERIC_PHY select GENERIC_PHY_MIPI_DPHY help
@@ -24,7 +25,7 @@ config PHY_STARFIVE_JH7110_PCIE config PHY_STARFIVE_JH7110_USB tristate "Starfive JH7110 USB 2.0 PHY support" - depends on USB_SUPPORT + depends on USB_SUPPORT && HAS_IOMEM select GENERIC_PHY help Enable this to support the StarFive USB 2.0 PHY,
Signature · 7 lines
2.41.0 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Quoted 24 lines · Vinod Koul
the startfive phy drivers use
devm_platform_ioremap_resource()which on some archs (s390) is not present. So make the drivers depend onHAS_IOMEMFixes f8aa660841bc ("phy: starfive: Add mipi dphy rx support")Reported-by kernel test robot <[email protected]>Signed-off-by Vinod Koul <[email protected]>--- drivers/phy/starfive/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/phy/starfive/Kconfig +1
-0@@ -5,6 +5,7 @@ config PHY_STARFIVE_JH7110_DPHY_RX tristate "StarFive JH7110 D-PHY RX support" + depends on HAS_IOMEM select GENERIC_PHY select GENERIC_PHY_MIPI_DPHY help
drivers/phy/starfive/Kconfig config PHY_STARFIVE_JH7110_PCIE · line 31
Quoted 8 lines
drivers/phy/starfive/Kconfig +1
-1@@ -24,7 +25,7 @@ config PHY_STARFIVE_JH7110_PCIE config PHY_STARFIVE_JH7110_USB tristate "Starfive JH7110 USB 2.0 PHY support" - depends on USB_SUPPORT + depends on USB_SUPPORT && HAS_IOMEM select GENERIC_PHY help Enable this to support the StarFive USB 2.0 PHY,
Hi Vinod
The USB_SUPPORT already depends on HAS_IOMEM.
menuconfig USB_SUPPORT
bool "USB support"
depends on HAS_IOMEM
default y
Signature · 3 lines
linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Vinod Koul
maintainerQuoted 37 lines · Minda Chen
Quoted 24 lines · Vinod Koul
the startfive phy drivers use
devm_platform_ioremap_resource()which on some archs (s390) is not present. So make the drivers depend onHAS_IOMEMFixes f8aa660841bc ("phy: starfive: Add mipi dphy rx support")Reported-by kernel test robot <[email protected]>Signed-off-by Vinod Koul <[email protected]>--- drivers/phy/starfive/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/phy/starfive/Kconfig +1
-0@@ -5,6 +5,7 @@ config PHY_STARFIVE_JH7110_DPHY_RX tristate "StarFive JH7110 D-PHY RX support" + depends on HAS_IOMEM select GENERIC_PHY select GENERIC_PHY_MIPI_DPHY helpdrivers/phy/starfive/Kconfig config PHY_STARFIVE_JH7110_PCIE · line 31
Quoted 8 lines
drivers/phy/starfive/Kconfig +1
-1@@ -24,7 +25,7 @@ config PHY_STARFIVE_JH7110_PCIE config PHY_STARFIVE_JH7110_USB tristate "Starfive JH7110 USB 2.0 PHY support" - depends on USB_SUPPORT + depends on USB_SUPPORT && HAS_IOMEM select GENERIC_PHY help Enable this to support the StarFive USB 2.0 PHY,Hi Vinod
Quoted 6 lines
The
USB_SUPPORTalready depends onHAS_IOMEM.menuconfig
USB_SUPPORT
bool "USB support"
depends onHAS_IOMEM
default y
Yes I will drop the second part of the patch, will post v2 shortly
Signature · 6 lines
~Vinod -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy