[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231115115331.19eb0c24@endymion.delvare>
Date: Wed, 15 Nov 2023 11:53:31 +0100
From: Jean Delvare <jdelvare@...e.de>
To: Keguang Zhang <keguang.zhang@...il.com>
Cc: linux-mips@...r.kernel.org, netdev@...r.kernel.org, LKML
<linux-kernel@...r.kernel.org>, Simon Horman <horms@...nel.org>
Subject: [PATCH v2] 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.
Signed-off-by: Jean Delvare <jdelvare@...e.de>
Cc: Keguang Zhang <keguang.zhang@...il.com>
---
Changes since v1:
* Enable build testing (suggested by Simon Horman)
drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-6.6.orig/drivers/net/ethernet/stmicro/stmmac/Kconfig
+++ linux-6.6/drivers/net/ethernet/stmicro/stmmac/Kconfig
@@ -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,
--
Jean Delvare
SUSE L3 Support
Powered by blists - more mailing lists