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

net: fsl: Allow most drivers to be built with COMPILE_TEST

There are only a handful of Freescale Ethernet drivers that don't
actually build with COMPILE_TEST:

* FEC, for which we would need to define a default register layout if no
supported architecture is defined

* UCC_GETH which depends on PowerPC cpm.h header (which could be moved
to a generic location)

* GIANFAR needs to depend on HAS_DMA to fix linking failures on some
architectures (like m32r)

We need to fix an unmet dependency to get there though:
warning: (FSL_XGMAC_MDIO) selects OF_MDIO which has unmet direct
dependencies (OF && PHYLIB)

which would result in CONFIG_OF_MDIO=[ym] without CONFIG_OF to be set.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
0827be21 00a19e55

+3 -1
+3 -1
drivers/net/ethernet/freescale/Kconfig
··· 8 8 depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \ 9 9 M523x || M527x || M5272 || M528x || M520x || M532x || \ 10 10 ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM) || \ 11 - ARCH_LAYERSCAPE 11 + ARCH_LAYERSCAPE || COMPILE_TEST 12 12 ---help--- 13 13 If you have a network (Ethernet) card belonging to this class, say Y. 14 14 ··· 65 65 config FSL_XGMAC_MDIO 66 66 tristate "Freescale XGMAC MDIO" 67 67 select PHYLIB 68 + depends on OF 68 69 select OF_MDIO 69 70 ---help--- 70 71 This driver supports the MDIO bus on the Fman 10G Ethernet MACs, and ··· 86 85 87 86 config GIANFAR 88 87 tristate "Gianfar Ethernet" 88 + depends on HAS_DMA 89 89 select FSL_PQ_MDIO 90 90 select PHYLIB 91 91 select CRC32