net: dsa: mv88e6xxx: Implement mv88e6390 tag remap
authorAndrew Lunn <andrew@lunn.ch>
Sat, 3 Dec 2016 03:35:16 +0000 (04:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Dec 2016 04:15:00 +0000 (23:15 -0500)
commitef0a731882a2bf120511072a08d973f65d00d979
treee7d8d4de4c018a234015d14e758523304b24b12d
parent69248719d0c27ba7cb734d4e716896369daca98d
net: dsa: mv88e6xxx: Implement mv88e6390 tag remap

The mv88e6390 does not have the two registers to set the frame
priority map. Instead it has an indirection registers for setting a
number of different priority maps. Refactor the old code into an
function, implement the mv88e6390 version, and use an op to call the
right one.

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
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h