net: dsa: mv88e6xxx: read then write PVID
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 7 Mar 2016 23:24:39 +0000 (18:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2016 21:10:30 +0000 (16:10 -0500)
commit5da96031834a65e064b97c8d9f7df958c818a4cc
tree773c3913e051096a9972e5403caab66c47388a26
parent2d9deae4aedee2be2205e22440ac357c37013658
net: dsa: mv88e6xxx: read then write PVID

The port register 0x07 contains more options than just the default VID,
even though they are not used yet. So prefer a read then write operation
over a direct write.

This also allows to keep track of the change through dynamic debug.

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