]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: write VID outside of VTU Get Next code
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 22 Oct 2015 13:34:39 +0000 (09:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Oct 2015 14:38:37 +0000 (07:38 -0700)
commitb11bd2fe96985cd500e3d23441e6758d82621ad6
treee416038fc106ced0086693a515bec1c2c04e36fa
parent4ea60991c20ba0afe40d8c7d9b597082a2b0b881
net: dsa: mv88e6xxx: write VID outside of VTU Get Next code

There is no need to write the VLAN ID before every Get Next operation,
since the VTU VID register is not cleared between calls.

Move the VID write call in a _mv88e6xxx_vtu_vid_write function outside
of _mv88e6xxx_vtu_getnext so future code could call VTU Get Next
multiple times and save a few register accesses.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c