diff options
author | David S. Miller <davem@davemloft.net> | 2017-05-17 15:19:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-17 15:19:40 -0400 |
commit | c63fbb0b41ef3c863a8c6da259000084d9e1c458 (patch) | |
tree | 86951445db1c8438e4f2f5a12b48276cb9e9ff15 | |
parent | 0d9a5997842756f859032ae3efcaf79715a51883 (diff) | |
parent | ec34e93f99123c44ba93d5f36a64d1fb5d72b6c9 (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/Kconfig | 40 | ||||
-rw-r--r-- | drivers/net/dsa/Makefile | 6 | ||||
-rw-r--r-- | include/net/dsa.h | 8 | ||||
-rw-r--r-- | net/dsa/Kconfig | 8 | ||||
-rw-r--r-- | net/dsa/Makefile | 6 | ||||
-rw-r--r-- | net/dsa/dsa.c | 18 | ||||
-rw-r--r-- | net/dsa/dsa_priv.h | 18 |
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 @@ | |||
1 | menu "Distributed Switch Architecture drivers" | 1 | menu "Distributed Switch Architecture drivers" |
2 | depends on HAVE_NET_DSA | 2 | depends on HAVE_NET_DSA |
3 | 3 | ||
4 | config NET_DSA_MV88E6060 | 4 | source "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 | ||
12 | config NET_DSA_BCM_SF2 | 6 | config 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 | ||
24 | source "drivers/net/dsa/b53/Kconfig" | ||
25 | |||
26 | source "drivers/net/dsa/mv88e6xxx/Kconfig" | ||
27 | |||
28 | config 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 | |||
37 | config NET_DSA_LOOP | 18 | config 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 | ||
34 | config 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 | |||
42 | source "drivers/net/dsa/mv88e6xxx/Kconfig" | ||
43 | |||
44 | config 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 | |||
53 | config NET_DSA_SMSC_LAN9303 | 53 | config 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 @@ | |||
1 | obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o | ||
2 | obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm-sf2.o | 1 | obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm-sf2.o |
3 | bcm-sf2-objs := bcm_sf2.o bcm_sf2_cfp.o | 2 | bcm-sf2-objs := bcm_sf2.o bcm_sf2_cfp.o |
4 | obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o | 3 | obj-$(CONFIG_NET_DSA_LOOP) += dsa_loop.o dsa_loop_bdinfo.o |
5 | obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o | 4 | obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o |
5 | obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o | ||
6 | obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o | ||
6 | obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o | 7 | obj-$(CONFIG_NET_DSA_SMSC_LAN9303) += lan9303-core.o |
7 | obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o | 8 | obj-$(CONFIG_NET_DSA_SMSC_LAN9303_I2C) += lan9303_i2c.o |
8 | obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o | 9 | obj-$(CONFIG_NET_DSA_SMSC_LAN9303_MDIO) += lan9303_mdio.o |
9 | obj-y += b53/ | 10 | obj-y += b53/ |
10 | obj-y += mv88e6xxx/ | 11 | obj-y += mv88e6xxx/ |
11 | obj-$(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 | ||
28 | enum dsa_tag_protocol { | 28 | enum 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 | |||
25 | config NET_DSA_TAG_EDSA | 25 | config NET_DSA_TAG_EDSA |
26 | bool | 26 | bool |
27 | 27 | ||
28 | config NET_DSA_TAG_TRAILER | 28 | config NET_DSA_TAG_LAN9303 |
29 | bool | 29 | bool |
30 | 30 | ||
31 | config NET_DSA_TAG_QCA | 31 | config NET_DSA_TAG_MTK |
32 | bool | 32 | bool |
33 | 33 | ||
34 | config NET_DSA_TAG_MTK | 34 | config NET_DSA_TAG_TRAILER |
35 | bool | 35 | bool |
36 | 36 | ||
37 | config NET_DSA_TAG_LAN9303 | 37 | config NET_DSA_TAG_QCA |
38 | bool | 38 | bool |
39 | 39 | ||
40 | endif | 40 | endif |
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 | |||
6 | dsa_core-$(CONFIG_NET_DSA_TAG_BRCM) += tag_brcm.o | 6 | dsa_core-$(CONFIG_NET_DSA_TAG_BRCM) += tag_brcm.o |
7 | dsa_core-$(CONFIG_NET_DSA_TAG_DSA) += tag_dsa.o | 7 | dsa_core-$(CONFIG_NET_DSA_TAG_DSA) += tag_dsa.o |
8 | dsa_core-$(CONFIG_NET_DSA_TAG_EDSA) += tag_edsa.o | 8 | dsa_core-$(CONFIG_NET_DSA_TAG_EDSA) += tag_edsa.o |
9 | dsa_core-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o | ||
10 | dsa_core-$(CONFIG_NET_DSA_TAG_QCA) += tag_qca.o | ||
11 | dsa_core-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o | ||
12 | dsa_core-$(CONFIG_NET_DSA_TAG_LAN9303) += tag_lan9303.o | 9 | dsa_core-$(CONFIG_NET_DSA_TAG_LAN9303) += tag_lan9303.o |
10 | dsa_core-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o | ||
11 | dsa_core-$(CONFIG_NET_DSA_TAG_QCA) += tag_qca.o | ||
12 | dsa_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 | ||
42 | const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = { | 42 | const 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); | |||
75 | int dsa_switch_register_notifier(struct dsa_switch *ds); | 75 | int dsa_switch_register_notifier(struct dsa_switch *ds); |
76 | void dsa_switch_unregister_notifier(struct dsa_switch *ds); | 76 | void dsa_switch_unregister_notifier(struct dsa_switch *ds); |
77 | 77 | ||
78 | /* tag_brcm.c */ | ||
79 | extern const struct dsa_device_ops brcm_netdev_ops; | ||
80 | |||
78 | /* tag_dsa.c */ | 81 | /* tag_dsa.c */ |
79 | extern const struct dsa_device_ops dsa_netdev_ops; | 82 | extern const struct dsa_device_ops dsa_netdev_ops; |
80 | 83 | ||
81 | /* tag_edsa.c */ | 84 | /* tag_edsa.c */ |
82 | extern const struct dsa_device_ops edsa_netdev_ops; | 85 | extern const struct dsa_device_ops edsa_netdev_ops; |
83 | 86 | ||
84 | /* tag_trailer.c */ | 87 | /* tag_lan9303.c */ |
85 | extern const struct dsa_device_ops trailer_netdev_ops; | 88 | extern const struct dsa_device_ops lan9303_netdev_ops; |
86 | 89 | ||
87 | /* tag_brcm.c */ | 90 | /* tag_mtk.c */ |
88 | extern const struct dsa_device_ops brcm_netdev_ops; | 91 | extern const struct dsa_device_ops mtk_netdev_ops; |
89 | 92 | ||
90 | /* tag_qca.c */ | 93 | /* tag_qca.c */ |
91 | extern const struct dsa_device_ops qca_netdev_ops; | 94 | extern const struct dsa_device_ops qca_netdev_ops; |
92 | 95 | ||
93 | /* tag_mtk.c */ | 96 | /* tag_trailer.c */ |
94 | extern const struct dsa_device_ops mtk_netdev_ops; | 97 | extern const struct dsa_device_ops trailer_netdev_ops; |
95 | |||
96 | /* tag_lan9303.c */ | ||
97 | extern const struct dsa_device_ops lan9303_netdev_ops; | ||
98 | 98 | ||
99 | #endif | 99 | #endif |