]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: extract trunk mapping
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 19 Jul 2016 00:45:32 +0000 (20:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 02:42:00 +0000 (19:42 -0700)
commit097928bb95c4112831c604c142dd51a525e82177
tree0dd9508bdbcb0489ed733d72952f25767b045312
parenta77a07e33caec8d558fcc86e3f81a4b8cdd96a3d
net: dsa: mv88e6xxx: extract trunk mapping

The Trunk Mask and Trunk Mapping registers are two Global 2 indirect
accesses to trunking configuration.

Add helpers for these tables and simplify the Global 2 setup.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h