]> 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)
commitaa9d49a533674fc77676ba41dcf481bd50b87353
tree4a87ebcd67d4598e825e5783effdddb542039dff
parent72a28d456970fa6feb57f332431f3edc1adc7d5d
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