Skip to contentSkip to conversation

stmmac: dwmac-loongson: Add architecture dependency

PATCH Applied Jean Delvare 3 participants 3 messages Nov 15, 2023 – Nov 16, 2023

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

PATCH v2 1/1 stmmac: dwmac-loongson: Add architecture dependency

Only present the DWMAC_LOONGSON option on architectures where it can actually be used.

This follows the same logic as the DWMAC_INTEL option.

---
Changes since v1:
* Enable build testing (suggested by Simon Horman)

 drivers/net/ethernet/stmicro/stmmac/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/Kconfig +1 -1
@@ -269,7 +269,7 @@ config DWMAC_INTEL
 config DWMAC_LOONGSON
 	tristate "Loongson PCI DWMAC support"
 	default MACH_LOONGSON64
-	depends on STMMAC_ETH && PCI
+	depends on (MACH_LOONGSON64 || COMPILE_TEST) && STMMAC_ETH && PCI
 	depends on COMMON_CLK
 	help
 	  This selects the LOONGSON PCI bus support for the stmmac driver,
Signature · 2 lines
Jean Delvare
SUSE L3 Support
reviewer Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · Jean Delvare

Only present the DWMAC_LOONGSON option on architectures where it can actually be used.

This follows the same logic as the DWMAC_INTEL option.

---
Changes since v1:
* Enable build testing (suggested by Simon Horman)

Thanks for the update, this version looks good to me.

#2 lore raw
In reply to Jean Delvare
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:

Quoted 9 lines · On Wed, 15 Nov 2023 11:53:31 +0100 you wrote:

Only present the DWMAC_LOONGSON option on architectures where it can actually be used.

This follows the same logic as the DWMAC_INTEL option.

[...]

Here is the summary with links:
- [v2] stmmac: dwmac-loongson: Add architecture dependency

    https://git.kernel.org/netdev/net/c/7fbd5fc2b35a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html