]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2993734a640cfc7a3e3bbdf9afb63804898d9f5
tree1c7b7049decca2d1be1dc2b21c84ada17d329c4e
parent8d82569d61715a9883638d4b33a9ac43cb1d2004
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