]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit443d5a1b7d2a8727a7e7d7836a784a5decd34dc0
tree4a87ebcd67d4598e825e5783effdddb542039dff
parent33641994a676f43f59d5fe02916c3965983522c2
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