Skip to contentSkip to conversation

net: ethernet: litex: Add the dependency on HAS_IOMEM

PATCH Superseded Cai Huoqing 2 participants 3 messages Feb 7, 2022 – Feb 8, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ethernet: litex: Add the dependency on HAS_IOMEM

The helper function devm_platform_ioremap_resource_xxx() needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM.

Fixes 464a57281f29 ("net/mlxbf_gige: Make use of devm_platform_ioremap_resourcexxx()")
---
 drivers/net/ethernet/litex/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/litex/Kconfig +1 -1
index f99adbf26ab4..04345b929d8e 100644
@@ -17,7 +17,7 @@ if NET_VENDOR_LITEX
 
 config LITEX_LITEETH
 	tristate "LiteX Ethernet support"
-	depends on OF
+	depends on OF && HAS_IOMEM
 	help
 	  If you wish to compile a kernel for hardware with a LiteX LiteEth
 	  device then you should answer Y to this.
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 5 lines · Cai Huoqing

The helper function devm_platform_ioremap_resource_xxx() needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM.

Fixes 464a57281f29 ("net/mlxbf_gige: Make use of devm_platform_ioremap_resourcexxx()")

That looks wrong...

$ git show --oneline --stat  464a57281f29
464a57281f29 net/mlxbf_gige: Make use of devm_platform_ioremap_resourcexxx()
 drivers/net/ethernet/litex/litex_liteeth.c                 |  7 ++-----
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 21
+++------------------
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c |  7 +------
 drivers/net/ethernet/ni/nixge.c

That's a strange commit message for the litex driver. Similarly for the ni driver. Did something go wrong there?

A better fixes line would be ee7da21ac4c3be1f618b6358e0a38739a5d1773e, as the original driver addition also has the iomem dependency.

Quoted 21 lines
---
 drivers/net/ethernet/litex/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/litex/Kconfig +1 -2
index f99adbf26ab4..04345b929d8e 100644
@@ -17,7 +17,7 @@ if NET_VENDOR_LITEX
 
 config LITEX_LITEETH
        tristate "LiteX Ethernet support"
-       depends on OF
+       depends on OF && HAS_IOMEM
        help
          If you wish to compile a kernel for hardware with a LiteX LiteEth
          device then you should answer Y to this.
--

2.25.1

#2 lore raw
Quoted 17 lines · Joel Stanley
Quoted 5 lines · Cai Huoqing

The helper function devm_platform_ioremap_resource_xxx() needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM.

Fixes 464a57281f29 ("net/mlxbf_gige: Make use of devm_platform_ioremap_resourcexxx()")

That looks wrong...

$ git show --oneline --stat  464a57281f29
464a57281f29 net/mlxbf_gige: Make use of devm_platform_ioremap_resourcexxx()
 drivers/net/ethernet/litex/litex_liteeth.c                 |  7 ++-----
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 21
+++------------------
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c |  7 +------
 drivers/net/ethernet/ni/nixge.c
Quoted 2 lines

That's a strange commit message for the litex driver. Similarly for the ni driver. Did something go wrong there?

no, ni driver has the dependency on HAS_IOMEM in
drivers/net/ethernet/ni/Kconfig.

Quoted 2 lines

A better fixes line would be ee7da21ac4c3be1f618b6358e0a38739a5d1773e,

ok.
Thanks
Cai

Quoted 23 lines

as the original driver addition also has the iomem dependency.

Quoted 21 lines
---
 drivers/net/ethernet/litex/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/litex/Kconfig +1 -2
index f99adbf26ab4..04345b929d8e 100644
@@ -17,7 +17,7 @@ if NET_VENDOR_LITEX
 
 config LITEX_LITEETH
        tristate "LiteX Ethernet support"
-       depends on OF
+       depends on OF && HAS_IOMEM
        help
          If you wish to compile a kernel for hardware with a LiteX LiteEth
          device then you should answer Y to this.
--

2.25.1