Skip to content

Commit 538e2de

Browse files
committed
Merge branch 'net-Allow-more-drivers-with-COMPILE_TEST'
Florian Fainelli says: ==================== net: Allow more drivers with COMPILE_TEST This patch series includes more drivers to be build tested with COMPILE_TEST enabled. This helps cover some of the issues I just ran into with missing a driver *sigh*. Chanves in v3: - drop the TI Keystone NETCP driver from the COMPILE_TEST additions Changes in v2: - allow FEC to build outside of CONFIG_ARM/ARM64 by defining a layout of registers, this is not meant to run, so this is not a real issue if we are not matching the correct register layout ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 33fa382 + 3c0596f commit 538e2de

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

drivers/net/ethernet/freescale/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if NET_VENDOR_FREESCALE
2222
config FEC
2323
tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
2424
depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
25-
ARCH_MXC || SOC_IMX28)
25+
ARCH_MXC || SOC_IMX28 || COMPILE_TEST)
2626
default ARCH_MXC || SOC_IMX28 if ARM
2727
select PHYLIB
2828
imply PTP_1588_CLOCK

drivers/net/ethernet/freescale/fec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
2323
defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \
24-
defined(CONFIG_ARM64)
24+
defined(CONFIG_ARM64) || defined(CONFIG_COMPILE_TEST)
2525
/*
2626
* Just figures, Motorola would have to change the offsets for
2727
* registers in the same peripheral device on different models

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ static int fec_enet_get_regs_len(struct net_device *ndev)
21072107
/* List of registers that can be safety be read to dump them with ethtool */
21082108
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
21092109
defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \
2110-
defined(CONFIG_ARM64)
2110+
defined(CONFIG_ARM64) || defined(CONFIG_COMPILE_TEST)
21112111
static u32 fec_enet_register_offset[] = {
21122112
FEC_IEVENT, FEC_IMASK, FEC_R_DES_ACTIVE_0, FEC_X_DES_ACTIVE_0,
21132113
FEC_ECNTRL, FEC_MII_DATA, FEC_MII_SPEED, FEC_MIB_CTRLSTAT, FEC_R_CNTRL,

drivers/net/ethernet/ti/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if NET_VENDOR_TI
1818

1919
config TI_DAVINCI_EMAC
2020
tristate "TI DaVinci EMAC Support"
21-
depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 )
21+
depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 ) || COMPILE_TEST
2222
select TI_DAVINCI_MDIO
2323
select TI_DAVINCI_CPDMA
2424
select PHYLIB
@@ -30,7 +30,7 @@ config TI_DAVINCI_EMAC
3030

3131
config TI_DAVINCI_MDIO
3232
tristate "TI DaVinci MDIO Support"
33-
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE
33+
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
3434
select PHYLIB
3535
---help---
3636
This driver supports TI's DaVinci MDIO module.
@@ -40,7 +40,7 @@ config TI_DAVINCI_MDIO
4040

4141
config TI_DAVINCI_CPDMA
4242
tristate "TI DaVinci CPDMA Support"
43-
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS
43+
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
4444
---help---
4545
This driver supports TI's DaVinci CPDMA dma engine.
4646

@@ -60,7 +60,7 @@ config TI_CPSW_ALE
6060

6161
config TI_CPSW
6262
tristate "TI CPSW Switch Support"
63-
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS
63+
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
6464
select TI_DAVINCI_CPDMA
6565
select TI_DAVINCI_MDIO
6666
select TI_CPSW_PHY_SEL
@@ -75,7 +75,7 @@ config TI_CPSW
7575

7676
config TI_CPTS
7777
bool "TI Common Platform Time Sync (CPTS) Support"
78-
depends on TI_CPSW || TI_KEYSTONE_NETCP
78+
depends on TI_CPSW || TI_KEYSTONE_NETCP || COMPILE_TEST
7979
depends on POSIX_TIMERS
8080
---help---
8181
This driver supports the Common Platform Time Sync unit of

drivers/net/phy/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ config MDIO_I2C
118118

119119
config MDIO_MOXART
120120
tristate "MOXA ART MDIO interface support"
121-
depends on ARCH_MOXART
121+
depends on ARCH_MOXART || COMPILE_TEST
122122
help
123123
This driver supports the MDIO interface found in the network
124124
interface units of the MOXA ART SoC
@@ -142,7 +142,7 @@ config MDIO_OCTEON
142142

143143
config MDIO_SUN4I
144144
tristate "Allwinner sun4i MDIO interface support"
145-
depends on ARCH_SUNXI
145+
depends on ARCH_SUNXI || COMPILE_TEST
146146
help
147147
This driver supports the MDIO interface found in the network
148148
interface units of the Allwinner SoC that have an EMAC (A10,

0 commit comments

Comments
 (0)