Skip to contentSkip to conversation

phy: starfive: make phys depend on HAS_IOMEM

PATCH Superseded Vinod Koul 2 participants 3 messages Jul 25, 2023 Generic PHY framework

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 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

Fixes f8aa660841bc ("phy: starfive: Add mipi dphy rx support")
---
 drivers/phy/starfive/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/starfive/Kconfig +2 -1
index a560533a674e..ea82261ca818 100644
@@ -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
#1 lore raw
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 on HAS_IOMEM

Fixes f8aa660841bc ("phy: starfive: Add mipi dphy rx support")
---
 drivers/phy/starfive/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/starfive/Kconfig +1 -0
index a560533a674e..ea82261ca818 100644
@@ -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
author maintainer
#2 lore raw
Quoted 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 on HAS_IOMEM

Fixes f8aa660841bc ("phy: starfive: Add mipi dphy rx support")
---
 drivers/phy/starfive/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/starfive/Kconfig +1 -0
index a560533a674e..ea82261ca818 100644
@@ -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

Quoted 6 lines

The USB_SUPPORT already depends on HAS_IOMEM.

menuconfig USB_SUPPORT
bool "USB support"
depends on HAS_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