net: dsa: mv88e6xxx: write MAC outside of ATU Get Next code
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 22 Oct 2015 13:34:40 +0000 (09:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Oct 2015 14:38:38 +0000 (07:38 -0700)
commitb0e1a692ff17a37031af03599fbb3666e82c777b
treebdeedab4db00737d5b670877c67d5c3a43e12155
parent36d04ba127eeed94b003155129c7509a2139b474
net: dsa: mv88e6xxx: write MAC outside of ATU Get Next code

There is no need to write the MAC address before every Get Next
operation, since ATU MAC registers are not cleared between calls.

Move the _mv88e6xxx_atu_mac_write call outside of _mv88e6xxx_atu_getnext
so future code could call ATU Get Next multiple times and save a few
register access.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c