net: dsa: mv88e6xxx: protect SID register access
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 31 Mar 2016 20:53:41 +0000 (16:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 01:31:34 +0000 (21:31 -0400)
commit2e7bd5ef98030999eaf4bf101707e595432fc8c2
tree1c7b7049decca2d1be1dc2b21c84ada17d329c4e
parent9ef280c6c28f0c01aa9d909263ad47c796713a8e
net: dsa: mv88e6xxx: protect SID register access

Introduce a mv88e6xxx_has_stu() helper to protect the access to the
GLOBAL_VTU_SID register, instead of checking switch families.

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