Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: pch_gbe: Allow build on MIPS_GENERIC kernel

MIPS Boston board, which is using MIPS_GENERIC kernel is using
EG20T PCH and thus need this driver.

Dependency of PCH_GBE, PTP_1588_CLOCK_PCH is also fixed for
MIPS_GENERIC.

Note that CONFIG_PCH_GBE is selected in arch/mips/configs/generic/
board-boston.config for a while, some how it's never wired up
in Kconfig.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230607055953.34110-1-jiaxun.yang@flygoat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Jiaxun Yang and committed by
Jakub Kicinski
c8cc2ae2 37ff78e9

+2 -2
+1 -1
drivers/net/ethernet/oki-semi/pch_gbe/Kconfig
··· 5 5 6 6 config PCH_GBE 7 7 tristate "OKI SEMICONDUCTOR IOH(ML7223/ML7831) GbE" 8 - depends on PCI && (X86_32 || COMPILE_TEST) 8 + depends on PCI && (MIPS_GENERIC || X86_32 || COMPILE_TEST) 9 9 depends on PTP_1588_CLOCK 10 10 select MII 11 11 select PTP_1588_CLOCK_PCH
+1 -1
drivers/ptp/Kconfig
··· 102 102 103 103 config PTP_1588_CLOCK_PCH 104 104 tristate "Intel PCH EG20T as PTP clock" 105 - depends on X86_32 || COMPILE_TEST 105 + depends on MIPS_GENERIC || X86_32 || COMPILE_TEST 106 106 depends on HAS_IOMEM && PCI 107 107 depends on NET 108 108 depends on PTP_1588_CLOCK