[0/3] DM DSA driver for NXP SJA1105 Ethernet switch
mbox series

Message ID 20191215205302.13325-1-olteanv@gmail.com
Headers show
Series
  • DM DSA driver for NXP SJA1105 Ethernet switch
Related show

Message

Vladimir Oltean Dec. 15, 2019, 8:52 p.m. UTC
This is a driver for the SJA1105 automotive L2 switch. It uses the
DSA uclass proposed by Alex Marginean (but not yet merged) here [0].
This is convenient because with this framework, the switch acts as a
4-port Ethernet multiplexer capable of TFTP, but does not do switching,
which is not unnecessary in the bootloader, and which would also cause
issues in complex networks that rely on STP to block loops.

[0]: https://patchwork.ozlabs.org/patch/1203754/

Vladimir Oltean (3):
  lib: import packing API from Linux
  include: import if_vlan.h from Linux
  net: add driver for NXP SJA1105 DSA L2 switch

 drivers/net/Kconfig     |   17 +
 drivers/net/Makefile    |    1 +
 drivers/net/sja1105.c   | 2309 +++++++++++++++++++++++++++++++++++++++
 include/linux/if_vlan.h |   26 +
 include/linux/packing.h |   49 +
 lib/Kconfig             |   17 +
 lib/Makefile            |    1 +
 lib/packing.c           |  208 ++++
 8 files changed, 2628 insertions(+)
 create mode 100644 drivers/net/sja1105.c
 create mode 100644 include/linux/if_vlan.h
 create mode 100644 include/linux/packing.h
 create mode 100644 lib/packing.c