]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Move the tagging protocol into info
authorAndrew Lunn <andrew@lunn.ch>
Sat, 3 Dec 2016 03:35:18 +0000 (04:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Dec 2016 04:15:00 +0000 (23:15 -0500)
commitf917d5cdfd4e1a89d2908e4e00cc8031646241d9
tree4a87ebcd67d4598e825e5783effdddb542039dff
parentfcf2e16a7f299dfd645f9eb66ce8e79ee50c47fd
net: dsa: mv88e6xxx: Move the tagging protocol into info

Older chips support a single tagging protocol, DSA. New chips support
both DSA and EDSA, an enhanced version. Having both as an option
changes the register layouts. Up until now, it has been assumed that
if EDSA is supported, it will be used. Hence the register layout has
been determined by which protocol should be used. However, mv88e6390
has a different implementation of EDSA, which requires we need to use
the DSA tagging. Hence separate the selection of the protocol from the
register layout.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h