aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-05-17 15:19:40 -0400
committerDavid S. Miller <davem@davemloft.net>2017-05-17 15:19:40 -0400
commitc63fbb0b41ef3c863a8c6da259000084d9e1c458 (patch)
tree86951445db1c8438e4f2f5a12b48276cb9e9ff15
parent0d9a5997842756f859032ae3efcaf79715a51883 (diff)
parentec34e93f99123c44ba93d5f36a64d1fb5d72b6c9 (diff)
Merge branch 'dsa-sort'
Andrew Lunn says: ==================== net: dsa: Sort various lists As we gain more DSA drivers and tagging protocols, the lists are getting a bit unruly. Do some sorting. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/dsa/Kconfig40
-rw-r--r--drivers/net/dsa/Makefile6
-rw-r--r--include/net/dsa.h8
-rw-r--r--net/dsa/Kconfig8
-rw-r--r--net/dsa/Makefile6
-rw-r--r--net/dsa/dsa.c18
-rw-r--r--net/dsa/dsa_priv.h18
7 files changed, 52 insertions, 52 deletions
diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig
index 862ee22303c2..68131a45ac5e 100644
--- a/drivers/net/dsa/Kconfig
+++ b/drivers/net/dsa/Kconfig
@@ -1,13 +1,7 @@
1menu "Distributed Switch Architecture drivers" 1menu "Distributed Switch Architecture drivers"
2 depends on HAVE_NET_DSA 2 depends on HAVE_NET_DSA
3 3
4config NET_DSA_MV88E6060 4source "drivers/net/dsa/b53/Kconfig"
5 tristate "Marvell 88E6060 ethernet switch chip support"
6 depends on NET_DSA
7 select NET_DSA_TAG_TRAILER
8 ---help---
9 This enables support for the Marvell 88E6060 ethernet switch
10 chip.
11 5
12config NET_DSA_BCM_SF2 6config NET_DSA_BCM_SF2
13 tristate "Broadcom Starfighter 2 Ethernet switch support" 7 tristate "Broadcom Starfighter 2 Ethernet switch support"
@@ -21,19 +15,6 @@ config NET_DSA_BCM_SF2
21 This enables support for the Broadcom Starfighter 2 Ethernet 15 This enables support for the Broadcom Starfighter 2 Ethernet
22 switch chips. 16 switch chips.
23 17
24source "drivers/net/dsa/b53/Kconfig"
25
26source "drivers/net/dsa/mv88e6xxx/Kconfig"
27
28config NET_DSA_QCA8K
29 tristate "Qualcomm Atheros QCA8K Ethernet switch family support"
30 depends on NET_DSA
31 select NET_DSA_TAG_QCA
32 select REGMAP
33 ---help---
34 This enables support for the Qualcomm Atheros QCA8K Ethernet
35 switch chips.
36
37config NET_DSA_LOOP 18config NET_DSA_LOOP
38 tristate "DSA mock-up Ethernet switch chip support" 19 tristate "DSA mock-up Ethernet switch chip support"
39 depends on NET_DSA 20 depends on NET_DSA
@@ -50,6 +31,25 @@ config NET_DSA_MT7530
50 This enables support for the Mediatek MT7530 Ethernet switch 31 This enables support for the Mediatek MT7530 Ethernet switch
51 chip. 32 chip.
52 33
34config NET_DSA_MV88E6060
35 tristate "Marvell 88E6060 ethernet switch chip support"
36 depends on NET_DSA
37 select NET_DSA_TAG_TRAILER
38 ---help---
39 This enables support for the Marvell 88E6060 ethernet switch
40 chip.
41
42source "drivers/net/dsa/mv88e6xxx/Kconfig"
43
44config NET_DSA_QCA8K
45 tristate "Qualcomm Atheros QCA8K Ethernet switch family support"
46 depends on NET_DSA
47 select NET_DSA_TAG_QCA
48 select REGMAP
49 ---help---
50 This enables support for the Qualcomm Atheros QCA8K Ethernet
51 switch chips.
52
53config NET_DSA_SMSC_LAN9303 53config NET_DSA_SMSC_LAN9303
54 tristate 54 tristate
55 select NET_DSA_TAG_LAN9303 55 select NET_DSA_TAG_LAN9303
diff --git a/drivers/net/dsa/Makefile b/drivers/net/dsa/Makefile
index edd630361736..9613f36083a6 100644
--- a/drivers/net/dsa/Makefile
+++ b/drivers/net/dsa/Makefile
@@ -1,11 +1,11 @@
1obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o
2obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm-sf2.o 1obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm-sf2.o
3bcm-sf2-objs := bcm_sf2.o bcm_sf2_cfp.o 2bcm-sf2-objs := bcm_sf2.o bcm_sf2_cfp.o
4obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o 3obj-$(CONFIG_NET_DSA_LOOP) += dsa_loop.o dsa_loop_bdinfo.o
5obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o 4obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o
5obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o
6obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o
6obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o 7obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o
7obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o 8obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o
8obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o 9obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o
9obj-y += b53/ 10obj-y += b53/
10obj-y += mv88e6xxx/ 11obj-y += mv88e6xxx/
11obj-$(CONFIG_NET_DSA_LOOP) += dsa_loop.o dsa_loop_bdinfo.o
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 118a8bd2fd9a..ed767beca9c6 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -27,13 +27,13 @@ struct fixed_phy_status;
27 27
28enum dsa_tag_protocol { 28enum dsa_tag_protocol {
29 DSA_TAG_PROTO_NONE = 0, 29 DSA_TAG_PROTO_NONE = 0,
30 DSA_TAG_PROTO_BRCM,
30 DSA_TAG_PROTO_DSA, 31 DSA_TAG_PROTO_DSA,
31 DSA_TAG_PROTO_TRAILER,
32 DSA_TAG_PROTO_EDSA, 32 DSA_TAG_PROTO_EDSA,
33 DSA_TAG_PROTO_BRCM,
34 DSA_TAG_PROTO_QCA,
35 DSA_TAG_PROTO_MTK,
36 DSA_TAG_PROTO_LAN9303, 33 DSA_TAG_PROTO_LAN9303,
34 DSA_TAG_PROTO_MTK,
35 DSA_TAG_PROTO_QCA,
36 DSA_TAG_PROTO_TRAILER,
37 DSA_TAG_LAST, /* MUST BE LAST */ 37 DSA_TAG_LAST, /* MUST BE LAST */
38}; 38};
39 39
diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig
index 81a0868edb1d..297389b2ab35 100644
--- a/net/dsa/Kconfig
+++ b/net/dsa/Kconfig
@@ -25,16 +25,16 @@ config NET_DSA_TAG_DSA
25config NET_DSA_TAG_EDSA 25config NET_DSA_TAG_EDSA
26 bool 26 bool
27 27
28config NET_DSA_TAG_TRAILER 28config NET_DSA_TAG_LAN9303
29 bool 29 bool
30 30
31config NET_DSA_TAG_QCA 31config NET_DSA_TAG_MTK
32 bool 32 bool
33 33
34config NET_DSA_TAG_MTK 34config NET_DSA_TAG_TRAILER
35 bool 35 bool
36 36
37config NET_DSA_TAG_LAN9303 37config NET_DSA_TAG_QCA
38 bool 38 bool
39 39
40endif 40endif
diff --git a/net/dsa/Makefile b/net/dsa/Makefile
index 0b747d75e65a..f8c0251d1f43 100644
--- a/net/dsa/Makefile
+++ b/net/dsa/Makefile
@@ -6,7 +6,7 @@ dsa_core-y += dsa.o slave.o dsa2.o switch.o legacy.o
6dsa_core-$(CONFIG_NET_DSA_TAG_BRCM) += tag_brcm.o 6dsa_core-$(CONFIG_NET_DSA_TAG_BRCM) += tag_brcm.o
7dsa_core-$(CONFIG_NET_DSA_TAG_DSA) += tag_dsa.o 7dsa_core-$(CONFIG_NET_DSA_TAG_DSA) += tag_dsa.o
8dsa_core-$(CONFIG_NET_DSA_TAG_EDSA) += tag_edsa.o 8dsa_core-$(CONFIG_NET_DSA_TAG_EDSA) += tag_edsa.o
9dsa_core-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o
10dsa_core-$(CONFIG_NET_DSA_TAG_QCA) += tag_qca.o
11dsa_core-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o
12dsa_core-$(CONFIG_NET_DSA_TAG_LAN9303) += tag_lan9303.o 9dsa_core-$(CONFIG_NET_DSA_TAG_LAN9303) += tag_lan9303.o
10dsa_core-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o
11dsa_core-$(CONFIG_NET_DSA_TAG_QCA) += tag_qca.o
12dsa_core-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 26130ae438da..c0a1307c87dd 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -40,26 +40,26 @@ static const struct dsa_device_ops none_ops = {
40}; 40};
41 41
42const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = { 42const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = {
43#ifdef CONFIG_NET_DSA_TAG_BRCM
44 [DSA_TAG_PROTO_BRCM] = &brcm_netdev_ops,
45#endif
43#ifdef CONFIG_NET_DSA_TAG_DSA 46#ifdef CONFIG_NET_DSA_TAG_DSA
44 [DSA_TAG_PROTO_DSA] = &dsa_netdev_ops, 47 [DSA_TAG_PROTO_DSA] = &dsa_netdev_ops,
45#endif 48#endif
46#ifdef CONFIG_NET_DSA_TAG_EDSA 49#ifdef CONFIG_NET_DSA_TAG_EDSA
47 [DSA_TAG_PROTO_EDSA] = &edsa_netdev_ops, 50 [DSA_TAG_PROTO_EDSA] = &edsa_netdev_ops,
48#endif 51#endif
49#ifdef CONFIG_NET_DSA_TAG_TRAILER 52#ifdef CONFIG_NET_DSA_TAG_LAN9303
50 [DSA_TAG_PROTO_TRAILER] = &trailer_netdev_ops, 53 [DSA_TAG_PROTO_LAN9303] = &lan9303_netdev_ops,
51#endif 54#endif
52#ifdef CONFIG_NET_DSA_TAG_BRCM 55#ifdef CONFIG_NET_DSA_TAG_MTK
53 [DSA_TAG_PROTO_BRCM] = &brcm_netdev_ops, 56 [DSA_TAG_PROTO_MTK] = &mtk_netdev_ops,
54#endif 57#endif
55#ifdef CONFIG_NET_DSA_TAG_QCA 58#ifdef CONFIG_NET_DSA_TAG_QCA
56 [DSA_TAG_PROTO_QCA] = &qca_netdev_ops, 59 [DSA_TAG_PROTO_QCA] = &qca_netdev_ops,
57#endif 60#endif
58#ifdef CONFIG_NET_DSA_TAG_MTK 61#ifdef CONFIG_NET_DSA_TAG_TRAILER
59 [DSA_TAG_PROTO_MTK] = &mtk_netdev_ops, 62 [DSA_TAG_PROTO_TRAILER] = &trailer_netdev_ops,
60#endif
61#ifdef CONFIG_NET_DSA_TAG_LAN9303
62 [DSA_TAG_PROTO_LAN9303] = &lan9303_netdev_ops,
63#endif 63#endif
64 [DSA_TAG_PROTO_NONE] = &none_ops, 64 [DSA_TAG_PROTO_NONE] = &none_ops,
65}; 65};
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index f4a88e485213..e9003b79cbbc 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -75,25 +75,25 @@ void dsa_slave_unregister_notifier(void);
75int dsa_switch_register_notifier(struct dsa_switch *ds); 75int dsa_switch_register_notifier(struct dsa_switch *ds);
76void dsa_switch_unregister_notifier(struct dsa_switch *ds); 76void dsa_switch_unregister_notifier(struct dsa_switch *ds);
77 77
78/* tag_brcm.c */
79extern const struct dsa_device_ops brcm_netdev_ops;
80
78/* tag_dsa.c */ 81/* tag_dsa.c */
79extern const struct dsa_device_ops dsa_netdev_ops; 82extern const struct dsa_device_ops dsa_netdev_ops;
80 83
81/* tag_edsa.c */ 84/* tag_edsa.c */
82extern const struct dsa_device_ops edsa_netdev_ops; 85extern const struct dsa_device_ops edsa_netdev_ops;
83 86
84/* tag_trailer.c */ 87/* tag_lan9303.c */
85extern const struct dsa_device_ops trailer_netdev_ops; 88extern const struct dsa_device_ops lan9303_netdev_ops;
86 89
87/* tag_brcm.c */ 90/* tag_mtk.c */
88extern const struct dsa_device_ops brcm_netdev_ops; 91extern const struct dsa_device_ops mtk_netdev_ops;
89 92
90/* tag_qca.c */ 93/* tag_qca.c */
91extern const struct dsa_device_ops qca_netdev_ops; 94extern const struct dsa_device_ops qca_netdev_ops;
92 95
93/* tag_mtk.c */ 96/* tag_trailer.c */
94extern const struct dsa_device_ops mtk_netdev_ops; 97extern const struct dsa_device_ops trailer_netdev_ops;
95
96/* tag_lan9303.c */
97extern const struct dsa_device_ops lan9303_netdev_ops;
98 98
99#endif 99#endif