Skip to contentSkip to conversation

net: fec: gate MPC52xx driver on PPC_MPC52xx

PATCH In review Rosen Penev 2 participants 3 messages Sep 16 – Sep 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fec: gate MPC52xx driver on PPC_MPC52xx

The FEC MPC52xx driver only applies to the MPC52xx family of SoCs, but only depended on PPC_BESTCOMM. Restrict the driver to MPC52xx platforms so it is not offered if COMPILE_TEST is applied to PPC_BESTCOMM. Otherwise the following errors happen during linking:

ERROR: modpost: drivers/net/ethernet/freescale/fec_mpc52xx.ko: symbol 'mpc5xxx_fwnode_get_bus_frequency' undefined!
ERROR: modpost: drivers/net/ethernet/freescale/fec_mpc52xx_phy.ko: symbol 'mpc5xxx_fwnode_get_bus_frequency' undefined!

Assisted-by LLM
---
 drivers/net/ethernet/freescale/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/freescale/Kconfig +1 -1
index b34c0fcfddea..d81984fcec64 100644
@@ -38,7 +38,7 @@ config FEC
 
 config FEC_MPC52xx
 	tristate "FEC MPC52xx driver"
-	depends on PPC_BESTCOMM
+	depends on PPC_BESTCOMM && PPC_MPC52xx
 	select CRC32
 	select PHYLIB
 	select PPC_BESTCOMM_FEC
Signature · 1 line
2.55.0
#1 lore raw
Quoted 20 lines · Rosen Penev

The FEC MPC52xx driver only applies to the MPC52xx family of SoCs, but only depended on PPC_BESTCOMM. Restrict the driver to MPC52xx platforms so it is not offered if COMPILE_TEST is applied to PPC_BESTCOMM. Otherwise the following errors happen during linking:

ERROR: modpost: drivers/net/ethernet/freescale/fec_mpc52xx.ko: symbol 'mpc5xxx_fwnode_get_bus_frequency' undefined!
ERROR: modpost: drivers/net/ethernet/freescale/fec_mpc52xx_phy.ko: symbol 'mpc5xxx_fwnode_get_bus_frequency' undefined!

Assisted-by LLM
---
 drivers/net/ethernet/freescale/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/freescale/Kconfig +0 -0
index b34c0fcfddea..d81984fcec64 100644

drivers/net/ethernet/freescale/Kconfig config FEC · line 41

Quoted 5 lines
drivers/net/ethernet/freescale/Kconfig +1 -1
@@ -38,7 +38,7 @@ config FEC
 
 config FEC_MPC52xx
        tristate "FEC MPC52xx driver"
-       depends on PPC_BESTCOMM
+       depends on PPC_BESTCOMM && PPC_MPC52xx

oh this is against local changes. Please ignore.

Quoted 6 lines
drivers/net/ethernet/freescale/Kconfig +0 -1
        select CRC32
        select PHYLIB
        select PPC_BESTCOMM_FEC
--

2.55.0

#2 lore raw
Quoted 22 lines · Rosen Penev
Quoted 21 lines · Rosen Penev

The FEC MPC52xx driver only applies to the MPC52xx family of SoCs, but only depended on PPC_BESTCOMM. Restrict the driver to MPC52xx platforms so it is not offered if COMPILE_TEST is applied to PPC_BESTCOMM. Otherwise the following errors happen during linking:

ERROR: modpost: drivers/net/ethernet/freescale/fec_mpc52xx.ko: symbol 'mpc5xxx_fwnode_get_bus_frequency' undefined!
ERROR: modpost: drivers/net/ethernet/freescale/fec_mpc52xx_phy.ko: symbol 'mpc5xxx_fwnode_get_bus_frequency' undefined!

Assisted-by LLM
---
 drivers/net/ethernet/freescale/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/freescale/Kconfig +0 -0
index b34c0fcfddea..d81984fcec64 100644
@@ -38,7 +38,7 @@ config FEC
 
Quoted 6 lines

drivers/net/ethernet/freescale/Kconfig config FEC · line 41

Quoted 4 lines
drivers/net/ethernet/freescale/Kconfig +1 -1
 config FEC_MPC52xx
        tristate "FEC MPC52xx driver"
-       depends on PPC_BESTCOMM
+       depends on PPC_BESTCOMM && PPC_MPC52xx

oh this is against local changes. Please ignore.

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#updating-patch-status

pw-bot: changes-requested

As a result the bot will set the entire series to Changes Requested. This may be useful when author discovers a bug in their own series and wants to prevent it from getting applied.

Andrew

---
pw-bot: cr