]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3730c32f0e9105b6c4e04247761a30a22a3c8493
treee0eb188210daa8319673359db996c11d7052f3d5
parentd0c4d3e9fed3ea06cff075e03c8128d8acedcb22
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