linux-sg2042/net/dsa
Florian Fainelli 71e0bbde0d net: dsa: Add support for platform data
Allow drivers to use the new DSA API with platform data. Most of the
code in net/dsa/dsa2.c does not rely so much on device_nodes and can get
the same information from platform_data instead.

We purposely do not support distributed configurations with platform
data, so drivers should be providing a pointer to a 'struct
dsa_chip_data' structure if they wish to communicate per-port layout.

Multiple CPUs port could potentially be supported and dsa_chip_data is
extended to receive up to one reference to an upstream network device
per port described by a dsa_chip_data structure.

dsa_dev_to_net_device() increments the network device's reference count,
so we intentionally call dev_put() to be consistent with the DT-enabled
path, until we have a generic notifier based solution.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-07 10:51:45 -05:00
..
Kconfig net: dsa: Remove hwmon support 2017-01-20 14:42:51 -05:00
Makefile net: dsa: add switch notifier 2017-02-06 16:53:29 -05:00
dsa.c net: dsa: Rename and export dev_to_net_device() 2017-02-07 10:51:45 -05:00
dsa2.c net: dsa: Add support for platform data 2017-02-07 10:51:45 -05:00
dsa_priv.h net: dsa: add switch notifier 2017-02-06 16:53:29 -05:00
slave.c net: dsa: introduce bridge notifier 2017-02-06 16:53:29 -05:00
switch.c net: dsa: introduce bridge notifier 2017-02-06 16:53:29 -05:00
tag_brcm.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_dsa.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_edsa.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_qca.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_trailer.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00