linux/drivers/net/dsa
Vivien Didelot 119477bd98 net: dsa: mv88e6xxx: factorize GLOBAL_CONTROL setup
All switch models configure the GLOBAL_CONTROL register with slightly
differences.

Discarding packets with excessive collisions
(GLOBAL_CONTROL_DISCARD_EXCESS) is specific to 6352 and similar
switches, and setting a maximum frame size
(GLOBAL_CONTROL_MAX_FRAME_1632) is specific to 6185 and similar
switches.

As we are centralizing the chips setup, skip these settings and don't
discard any frames yet, until we found out that such discarding by the
hardware is necessary.

Assume a common setup to enable the PHY Polling Unit if present, don't
discard any packets, and mask all interrupt sources.

Tested on 88E6352 and 88E6185.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-09 14:26:11 -04:00
..
bcm_sf2_regs.h net: dsa: bcm_sf2: Implement FDB operations 2015-10-26 18:14:02 -07:00
bcm_sf2.c net: dsa: constify probed name 2016-04-17 18:54:14 -04:00
bcm_sf2.h net: dsa: pass bridge down to drivers 2016-02-23 14:52:46 -05:00
Kconfig net: dsa: mv88e6xxx: factorize PHY access with PPU 2016-05-09 14:26:08 -04:00
Makefile dsa: Rename mv88e6123_61_65 to mv88e6123 to be consistent 2016-03-14 15:43:10 -04:00
mv88e6xxx.c net: dsa: mv88e6xxx: factorize GLOBAL_CONTROL setup 2016-05-09 14:26:11 -04:00
mv88e6xxx.h net: dsa: mv88e6xxx: factorize global setup 2016-05-09 14:26:11 -04:00
mv88e6060.c net: dsa: constify probed name 2016-04-17 18:54:14 -04:00
mv88e6060.h net: dsa: Keep the mii bus and address in the private structure 2016-04-13 18:15:23 -04:00
mv88e6123.c net: dsa: mv88e6xxx: factorize GLOBAL_CONTROL setup 2016-05-09 14:26:11 -04:00
mv88e6131.c net: dsa: mv88e6xxx: factorize GLOBAL_CONTROL setup 2016-05-09 14:26:11 -04:00
mv88e6171.c net: dsa: mv88e6xxx: factorize GLOBAL_CONTROL setup 2016-05-09 14:26:11 -04:00
mv88e6352.c net: dsa: mv88e6xxx: factorize GLOBAL_CONTROL setup 2016-05-09 14:26:11 -04:00