OSDN Git Service

net: dsa: mv88e6xxx: move trunk setup
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 27 Apr 2018 01:56:44 +0000 (21:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Apr 2018 00:36:49 +0000 (20:36 -0400)
commitb28f872dc48a4d55cba9d51cf3bac03ca32b2747
treee0eb188210daa8319673359db996c11d7052f3d5
parent9e8d438e8ba43a38def2890a65a26917f2233a83
net: dsa: mv88e6xxx: move trunk setup

Move the trunking setup out of Global 2 specific setup into the top
level mv88e6xxx_setup function.

Note that the 88E6390 family calls this LAG instead of Trunk and
supports 32 possible ID routing vectors, with LAG ID bit 4 being placed
in Global 2 register 0x1D...

We don't need Trunk (or LAG) IDs for the moment, thus keep it simple.

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